From 4fae3d8d2576ec72b87a9868646a0e5c3fa26453 Mon Sep 17 00:00:00 2001 From: David Weinholz Date: Tue, 24 Sep 2019 11:37:10 +0200 Subject: [PATCH] rmeoved restart when removed suspended machine --- VirtualMachineService/VirtualMachineHandler.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/VirtualMachineService/VirtualMachineHandler.py b/VirtualMachineService/VirtualMachineHandler.py index 5edbc22b..1dd73eca 100644 --- a/VirtualMachineService/VirtualMachineHandler.py +++ b/VirtualMachineService/VirtualMachineHandler.py @@ -1136,11 +1136,6 @@ def delete_server(self, openstack_id): if server is None: self.logger.exception("Instance {0} not found".format(openstack_id)) raise serverNotFoundException - - if server.status == "SHUTOFF": - self.conn.compute.start_server(server) - server = self.conn.compute.get_server(server) - self.conn.compute.wait_for_server(server=server, status='ACTIVE') self.logger.info(server) self.logger.info(server.name) security_group = self.conn.network.find_security_group(name_or_id=openstack_id)