Skip to content

Commit

Permalink
Merge pull request #1584 from grycap/devel
Browse files Browse the repository at this point in the history
Fix deleting floating IPs
  • Loading branch information
micafer authored Jul 2, 2024
2 parents d50aace + 80dff09 commit 3b45672
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 3b45672

Please sign in to comment.