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
This commit is contained in:
Xi Yang 2015-12-01 18:42:54 +08:00
parent 27869c0f3f
commit 197d86dffa
1 changed files with 1 additions and 1 deletions

View File

@ -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')