Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
rmeoved restart when removed suspended machine
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Sep 24, 2019
1 parent 02dae03 commit 4fae3d8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions VirtualMachineService/VirtualMachineHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4fae3d8

Please sign in to comment.