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

Commit

Permalink
feat(volume):updated
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Feb 12, 2019
1 parent 7f38ac2 commit 8521b59
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions VirtualMachineService/VirtualMachineHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,16 @@ def get_server(self, openstack_id):
timestamp = time.mktime(dt.timetuple())
else:
timestamp = None

flav = self.conn.compute.get_flavor(serv['flavor']['id']).to_dict()
img = self.get_Image_with_Tag(serv['image']['id'])
try:
flav = self.conn.compute.get_flavor(serv['flavor']['id']).to_dict()
except Exception as e:
self.logger.error(e)
flav=None
try:
img = self.get_Image_with_Tag(serv['image']['id'])
except Exception as e:
self.logger.error(e)
img = None
for values in server.addresses.values():
for address in values:

Expand Down

0 comments on commit 8521b59

Please sign in to comment.