diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-02-03 22:45:49 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-02-03 22:45:49 +0000 |
| commit | 78d51125acf23dc89ed6a2e4803b12326e742c9f (patch) | |
| tree | 478564df6f5c0a352bd8aeaca5beba267214afbb /openstackclient | |
| parent | 7903e53971e916e9bdaf613e8a0a9dce180d04a2 (diff) | |
| parent | d324aa652bfe5527e18ebe4666a6c8905c69e05d (diff) | |
| download | python-openstackclient-78d51125acf23dc89ed6a2e4803b12326e742c9f.tar.gz | |
Merge "Fix wrong type of volume attachments in FakeVolume"
Diffstat (limited to 'openstackclient')
| -rw-r--r-- | openstackclient/tests/volume/v2/fakes.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openstackclient/tests/volume/v2/fakes.py b/openstackclient/tests/volume/v2/fakes.py index 2e58e58d..2fc5c8ff 100644 --- a/openstackclient/tests/volume/v2/fakes.py +++ b/openstackclient/tests/volume/v2/fakes.py @@ -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 |
