Skip to content

Commit

Permalink
[rhol_crc] Removed crc delete -f command from the cleanup phase
Browse files Browse the repository at this point in the history
During the "deepscrub" cleanup, the command `crc delete -f` fails if
there's no running crc vm.

We are now executing only the `crc cleanup` command because:
  - it won't fail if the crc vm isn't running
  - it will take care of deleting the vm, making the removed command useless
  • Loading branch information
rebtoor authored and openshift-merge-bot[bot] committed Jul 29, 2024
1 parent 1772ae6 commit a382a3c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions roles/rhol_crc/tasks/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@
- name: Delete RHOL/CRC instance and associated configuration
when:
- _crc_binary.stat.exists
ansible.builtin.command: "{{ cifmw_rhol_crc_binary }} {{ item }}"
loop:
- "delete -f"
- "cleanup"
ansible.builtin.command: "{{ cifmw_rhol_crc_binary }} cleanup"

- name: Deepscrub CRC directory
tags:
Expand Down

0 comments on commit a382a3c

Please sign in to comment.