diff options
| author | Eric Harney <eharney@redhat.com> | 2019-03-27 11:16:15 -0400 |
|---|---|---|
| committer | Eric Harney <eharney@redhat.com> | 2019-04-03 11:34:40 -0400 |
| commit | 274fa111696783e846561d12f670967ed01ebcbc (patch) | |
| tree | 53dd829c8ff0206a8d39ec0a2c47f074d39fcd92 /cinderclient/v2 | |
| parent | 8804b7c978ebf056fa66e09b702355e44da71040 (diff) | |
| download | python-cinderclient-274fa111696783e846561d12f670967ed01ebcbc.tar.gz | |
Fix shell upload-to-image with no volume type
Upload-to-image would error after launching
the operation if the volume type is None.
Closes-Bug: #1821818
Change-Id: I015e0ddfa98d62f25334e2df5effaee72a3988ab
Diffstat (limited to 'cinderclient/v2')
| -rw-r--r-- | cinderclient/v2/volumes.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cinderclient/v2/volumes.py b/cinderclient/v2/volumes.py index 18a6e25..c16b3a0 100644 --- a/cinderclient/v2/volumes.py +++ b/cinderclient/v2/volumes.py @@ -352,6 +352,8 @@ class VolumeManager(base.ManagerWithFind): def _action(self, action, volume, info=None, **kwargs): """Perform a volume "action." + + :returns: tuple (response, body) """ body = {action: info} self.run_hooks('modify_body_for_action', body, **kwargs) |
