Skip to content

Commit

Permalink
[zuul][autoscaling] update the revert command (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgirgisf authored Aug 7, 2024
1 parent 93ccf3e commit 11dc0d0
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions ci/run_playbooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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:
Expand Down

0 comments on commit 11dc0d0

Please sign in to comment.