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:
parent
27869c0f3f
commit
197d86dffa
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user