summaryrefslogtreecommitdiff
path: root/openstackclient/volume
diff options
context:
space:
mode:
authorXi Yang <yang.xi@99cloud.net>2015-12-01 18:42:54 +0800
committerXi Yang <yang.xi@99cloud.net>2015-12-03 15:25:12 +0800
commit197d86dffa4ba7eefbf6f18381ff1ced9dc7f23f (patch)
tree55bb66310bcb14e1e6093a2bffa8eb8a6b7f1ac6 /openstackclient/volume
parent27869c0f3ffca5bd15700a198dd9e5929ea4d77d (diff)
downloadpython-openstackclient-197d86dffa4ba7eefbf6f18381ff1ced9dc7f23f.tar.gz
Fix exception when doing volume set operation
The v2 SetVolume extends from show.ShowOne and returns None after setting volume operation. It will raise an exception. This patch is going to fix the issue by changing the parent class of SetVolume to command.Command. Change-Id: Iefa453fe4adad06f2a0601a052c01e74004be5b7 Closes-bug: 1521896
Diffstat (limited to 'openstackclient/volume')
-rw-r--r--openstackclient/volume/v2/volume.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/volume/v2/volume.py b/openstackclient/volume/v2/volume.py
index 925b01d4..bbcceca6 100644
--- a/openstackclient/volume/v2/volume.py
+++ b/openstackclient/volume/v2/volume.py
@@ -326,7 +326,7 @@ class ListVolume(lister.Lister):
) for s in data))
-class SetVolume(show.ShowOne):
+class SetVolume(command.Command):
"""Set volume properties"""
log = logging.getLogger(__name__ + '.SetVolume')