Merge "Make sure we have a volumes property before trying to use it"

This commit is contained in:
Jenkins 2013-03-05 15:10:23 +00:00 committed by Gerrit Code Review
commit 0a19b19fde

View File

@ -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: