From c830d96e4f3af5a8ce7e903fae02e01409ffdfdd Mon Sep 17 00:00:00 2001 From: David Moreau Simard Date: Wed, 15 Jul 2015 15:40:51 -0400 Subject: [PATCH] Fix image save with API v2 Glanceclient v2 no longer expects the whole image object, just the image id. Change-Id: I8f34acfa50ca2d50eb7c9eb1dd5114c4621ad158 Closes-bug: #1475001 --- openstackclient/image/v2/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstackclient/image/v2/image.py b/openstackclient/image/v2/image.py index 3dd9833849..3808f6cf28 100644 --- a/openstackclient/image/v2/image.py +++ b/openstackclient/image/v2/image.py @@ -219,7 +219,7 @@ class SaveImage(command.Command): image_client.images, parsed_args.image, ) - data = image_client.images.data(image) + data = image_client.images.data(image.id) gc_utils.save_image(data, parsed_args.file)