From 11dc0d018aa49e1bfce86240c8a3e58ad59b4515 Mon Sep 17 00:00:00 2001 From: Marihan Girgis <102027102+mgirgisf@users.noreply.github.com> Date: Wed, 7 Aug 2024 19:22:28 +0300 Subject: [PATCH] [zuul][autoscaling] update the revert command (#137) --- ci/run_playbooks.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/ci/run_playbooks.yml b/ci/run_playbooks.yml index f0983bcb..e0f3b187 100644 --- a/ci/run_playbooks.yml +++ b/ci/run_playbooks.yml @@ -67,8 +67,6 @@ tags: - setup - - name: Run telemetry tests on OSP18 - block: - name: "Run telemetry tests playbook locally on the target host" ansible.builtin.shell: cmd: | @@ -80,13 +78,12 @@ ansible.builtin.copy: content: "{{ output.stdout }}" dest: "{{ logs_dir }}/ansible_run.log" - - - - name: Revert the version update - ansible.builtin.shell: - cmd: | - oc patch openstackversions controlplane --type json -p='[{"op": "replace", "path": "/spec/customContainerImages", "value": {} }]' - when: "{{ patch_openstackversions | bool }}" + always: + - name: Revert the version update + ansible.builtin.shell: + cmd: | + oc patch openstackversions controlplane --type json -p='[{"op": "replace", "path": "/spec/customContainerImages", "value": {} }]' + when: "{{ patch_openstackversions | bool }}" - name: Include report result ansible.builtin.include_tasks: