From 80dff094a974a822cd68f2c745934724b52119b0 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Tue, 2 Jul 2024 12:25:31 +0200 Subject: [PATCH] Fix deleting floating IPs --- IM/connectors/OpenStack.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IM/connectors/OpenStack.py b/IM/connectors/OpenStack.py index eeb283aa..b14809d9 100644 --- a/IM/connectors/OpenStack.py +++ b/IM/connectors/OpenStack.py @@ -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: @@ -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