summaryrefslogtreecommitdiff
path: root/openstackclient
diff options
context:
space:
mode:
authorTang Chen <chen.tang@easystack.cn>2016-02-29 15:45:27 +0800
committerTang Chen <chen.tang@easystack.cn>2016-02-29 16:18:55 +0800
commit61c1d985c76599ae95651573c440c2d1149ed3b0 (patch)
tree1a7b7236250219a23afb3a710bf73993b04bbe48 /openstackclient
parent2819450be5d4fa57c6efdb4cd225f59bab894fba (diff)
downloadpython-openstackclient-61c1d985c76599ae95651573c440c2d1149ed3b0.tar.gz
Fix return value of "image set" command
"image set" command should return None. But in one path, it returns ({}, {}). This patch fixes this. Change-Id: I3847e661cb7e89863921a3f0a859d9b1a8077ede
Diffstat (limited to 'openstackclient')
-rw-r--r--openstackclient/image/v1/image.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/image/v1/image.py b/openstackclient/image/v1/image.py
index 6e172bce..0d085597 100644
--- a/openstackclient/image/v1/image.py
+++ b/openstackclient/image/v1/image.py
@@ -691,7 +691,7 @@ class SetImage(command.Command):
if not kwargs:
self.log.warning('no arguments specified')
- return {}, {}
+ return
image = image_client.images.update(image.id, **kwargs)
finally: