Merge "Make sure we have a volumes property before trying to use it"
This commit is contained in:
commit
0a19b19fde
@ -314,6 +314,8 @@ class Instance(resource.Resource):
|
||||
self.name, server.status))
|
||||
|
||||
def attach_volumes(self):
|
||||
if not self.properties['Volumes']:
|
||||
return
|
||||
server_id = self.resource_id
|
||||
for vol in self.properties['Volumes']:
|
||||
if 'DeviceId' in vol:
|
||||
|
Loading…
Reference in New Issue
Block a user