Skip to content

Commit 197d86d

Browse files
author
Xi Yang
committed
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
1 parent 27869c0 commit 197d86d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstackclient/volume/v2/volume.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def _format_attach(attachments):
326326
) for s in data))
327327

328328

329-
class SetVolume(show.ShowOne):
329+
class SetVolume(command.Command):
330330
"""Set volume properties"""
331331

332332
log = logging.getLogger(__name__ + '.SetVolume')

0 commit comments

Comments
 (0)