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

Commit

Permalink
fixed smlal bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Feb 8, 2019
1 parent 1dbefe5 commit 7f38ac2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion VirtualMachineService/VirtualMachineHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,11 @@ def get_server(self, openstack_id):
floating_ip = None
fixed_ip = None
self.logger.info("Get Server {0}".format(openstack_id))
server = self.conn.compute.get_server(openstack_id)
try:
server = self.conn.compute.get_server(openstack_id)
except Exception as e:
self.logger.error("No Server found {0} | Error {1}".format(openstack_id,e))
return VM(status='DELETED')
if server is None:
self.logger.error("No Server {0}".format(openstack_id))
raise serverNotFoundException(
Expand Down

0 comments on commit 7f38ac2

Please sign in to comment.