diff options
| author | Monty Taylor <mordred@inaugust.com> | 2018-07-23 10:19:50 -0500 |
|---|---|---|
| committer | Dean Troyer <dtroyer@gmail.com> | 2018-07-23 13:38:35 -0500 |
| commit | 3dd9613b21d78005e1c8f5b3b20b48b686459717 (patch) | |
| tree | 258de5a4163527c6b56c7772bcb93d5f30e23e13 /openstackclient/tests | |
| parent | ee35409069b0f77984e912cfc0c90cb9cce52512 (diff) | |
| download | python-openstackclient-3dd9613b21d78005e1c8f5b3b20b48b686459717.tar.gz | |
Pass volume snapshot size to volume create
When creating a volume from a snapshot, the size parameter is required
and type is checked. Since we have to pass something and it needs to be
a valid data type (None is not acceptable) grab the size from the
snapshot object and pass it.
Change-Id: Ie23e3d23828919234e40336b5c65b22e140d337c
Diffstat (limited to 'openstackclient/tests')
| -rw-r--r-- | openstackclient/tests/unit/volume/v2/test_volume.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/tests/unit/volume/v2/test_volume.py b/openstackclient/tests/unit/volume/v2/test_volume.py index 2fa924b8..304aa91c 100644 --- a/openstackclient/tests/unit/volume/v2/test_volume.py +++ b/openstackclient/tests/unit/volume/v2/test_volume.py @@ -430,7 +430,7 @@ class TestVolumeCreate(TestVolume): columns, data = self.cmd.take_action(parsed_args) self.volumes_mock.create.assert_called_once_with( - size=None, + size=snapshot.size, snapshot_id=snapshot.id, name=self.new_volume.name, description=None, |
