Skip to content

Commit

Permalink
Merge pull request #13 from mukrishn/destroy-patch
Browse files Browse the repository at this point in the history
recreate base dict to avoid re-index on cleanup
  • Loading branch information
morenod authored Oct 6, 2023
2 parents 975b85c + b221830 commit 0ac0d9c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rosa-burner.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@
raise

if str(platform.environment["cleanup_clusters"]).lower() == "true":
if len(platform.environment['clusters']) < 1:
platform = utils.get_cluster_info(platform)
platform = utils.get_cluster_info(platform)
delete_threads = utils.cleanup_scheduler(platform)
logging.info(f"{len(delete_threads)} threads created for deleting clusters. Waiting for them to finish")
for thread in delete_threads:
Expand Down

0 comments on commit 0ac0d9c

Please sign in to comment.