Skip to content

Commit

Permalink
Fix deleting floating IPs
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer committed Jul 2, 2024
1 parent 2ec6337 commit 80dff09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions IM/connectors/OpenStack.py
Original file line number Diff line number Diff line change
Expand Up @@ -1743,9 +1743,6 @@ def finalize(self, vm, last, auth_data):
except Exception:
self.log_exception("Error dettaching SG %s." % sg_name)

res = node.destroy()
success.append(res)

try:
res, msg = self.delete_elastic_ips(node, vm)
except Exception as ex:
Expand All @@ -1754,6 +1751,9 @@ def finalize(self, vm, last, auth_data):
success.append(res)
msgs.append(msg)

res = node.destroy()
success.append(res)

try:
for vol_id in vm.volumes:
volume = None
Expand Down

0 comments on commit 80dff09

Please sign in to comment.