From 61c1d985c76599ae95651573c440c2d1149ed3b0 Mon Sep 17 00:00:00 2001 From: Tang Chen Date: Mon, 29 Feb 2016 15:45:27 +0800 Subject: [PATCH] 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 --- openstackclient/image/v1/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstackclient/image/v1/image.py b/openstackclient/image/v1/image.py index 6e172bce21..0d0855974c 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: