diff options
| author | Tang Chen <chen.tang@easystack.cn> | 2016-02-02 23:44:38 +0800 |
|---|---|---|
| committer | Tang Chen <chen.tang@easystack.cn> | 2016-02-02 23:47:23 +0800 |
| commit | d324aa652bfe5527e18ebe4666a6c8905c69e05d (patch) | |
| tree | 62680416d0b07fe06c15d9f252493a5c62652020 /openstackclient | |
| parent | f36177ebdd4ea25028337efaf667c23d62e3bf9e (diff) | |
| download | python-openstackclient-d324aa652bfe5527e18ebe4666a6c8905c69e05d.tar.gz | |
Fix wrong type of volume attachments in FakeVolume
The volume attachments should be a list of dict, not a single dict.
Change-Id: I3cec62bcb3953e4f38f9d3dd23f3eb6ef984464c
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 |
