diff --git a/upi/openstack/down-containers.yaml b/upi/openstack/down-containers.yaml index dc3caf8c0ce..a4104dba19f 100644 --- a/upi/openstack/down-containers.yaml +++ b/upi/openstack/down-containers.yaml @@ -14,8 +14,9 @@ ansible.builtin.command: cmd: "openstack container list --prefix {{ os_infra_id }} -f value -c Name" register: container_list + ignore_errors: true - name: 'Delete the containers associated with the cluster' ansible.builtin.command: cmd: "openstack container delete -r {{ container_list.stdout }}" - when: container_list.stdout|length > 0 + when: container_list.rc == 0 and container_list.stdout|length > 0