Skip to content

Commit 78d5112

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Fix wrong type of volume attachments in FakeVolume"
2 parents 7903e53 + d324aa6 commit 78d5112

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

openstackclient/tests/volume/v2/fakes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,10 @@ def create_one_volume(attrs={}):
256256
'key' + uuid.uuid4().hex: 'val' + uuid.uuid4().hex},
257257
'snapshot_id': random.randint(1, 5),
258258
'availability_zone': 'zone' + uuid.uuid4().hex,
259-
'attachments': {
259+
'attachments': [{
260260
'device': '/dev/' + uuid.uuid4().hex,
261-
'server_id': uuid.uuid4().hex},
261+
'server_id': uuid.uuid4().hex,
262+
}, ],
262263
}
263264

264265
# Overwrite default attributes if there are some attributes set

0 commit comments

Comments
 (0)