From 197d86dffa4ba7eefbf6f18381ff1ced9dc7f23f Mon Sep 17 00:00:00 2001 From: Xi Yang Date: Tue, 1 Dec 2015 18:42:54 +0800 Subject: [PATCH] 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 --- openstackclient/volume/v2/volume.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstackclient/volume/v2/volume.py b/openstackclient/volume/v2/volume.py index 925b01d435..bbcceca6bf 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')