Skip to content

Commit

Permalink
Fix typo in cleanup.py (#474)
Browse files Browse the repository at this point in the history
* Fix typo in cleanup.py
* Remove failed_when so we notice when something doesn't work

Signed-off-by: Matthias Büchse <matthias.buechse@cloudandheat.com>
  • Loading branch information
mbuechse authored Feb 14, 2024
1 parent 7022c8c commit 337c073
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Tests/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def main(argv):
if opt[0] == "-h" or opt[0] == "--help":
print_usage()
return 0
if opt[0] == "-i" or opt[0] == "--prefix":
if opt[0] == "-p" or opt[0] == "--prefix":
prefix = opt[1]
if opt[0] == "-c" or opt[0] == "--os-cloud":
cloud = opt[1]
Expand Down
3 changes: 1 addition & 2 deletions playbooks/pre_cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,5 @@
no_log: true

- name: Clean up any lingering resources from previous run
ansible.builtin.shell: python3 ~/Tests/cleanup.py -c {{ cloud }} -p _scs-
failed_when: false
ansible.builtin.shell: python3 ~/Tests/cleanup.py -c {{ cloud }} --prefix _scs-
changed_when: true

0 comments on commit 337c073

Please sign in to comment.