Skip to content

Commit

Permalink
collect log assumes hardcode the openstack operator imag name.
Browse files Browse the repository at this point in the history
Prevent the task from failing when the operator is coming from
internal registry.
  • Loading branch information
sathlan committed Feb 3, 2025
1 parent 0826039 commit 0f6277f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/env_op_images/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,10 @@

- name: Retrieve openstack-operator-index pod
vars:
selected_pod: "{{ pod_list.resources| selectattr('metadata.generateName', 'equalto', 'openstack-operator-index-') | list | first }}"
selected_pod: "{{ pod_list.resources| selectattr('metadata.generateName', 'equalto', 'openstack-operator-index-') | list | default([]) | first }}"
ansible.builtin.set_fact:
cifmw_install_yamls_vars_content:
OPENSTACK_IMG: "{{ selected_pod.status.containerStatuses[0].imageID }}"
OPENSTACK_IMG: "{{ selected_pod.status.containerStatuses[0].imageID | default('') }}"

- name: Get operator images and pods
when: not cifmw_env_op_images_dryrun | bool
Expand Down

0 comments on commit 0f6277f

Please sign in to comment.