Merge "Fix wrong type of volume attachments in FakeVolume"

This commit is contained in:
Jenkins 2016-02-03 22:45:49 +00:00 committed by Gerrit Code Review
commit 78d51125ac

@ -256,9 +256,10 @@ class FakeVolume(object):
'key' + uuid.uuid4().hex: 'val' + uuid.uuid4().hex},
'snapshot_id': random.randint(1, 5),
'availability_zone': 'zone' + uuid.uuid4().hex,
'attachments': {
'attachments': [{
'device': '/dev/' + uuid.uuid4().hex,
'server_id': uuid.uuid4().hex},
'server_id': uuid.uuid4().hex,
}, ],
}
# Overwrite default attributes if there are some attributes set