summaryrefslogtreecommitdiff
path: root/openstackclient/image
diff options
context:
space:
mode:
authorDavid Moreau Simard <dmsimard@iweb.com>2015-07-15 15:40:51 -0400
committerDavid Moreau Simard <dmsimard@iweb.com>2015-07-15 15:41:49 -0400
commitc830d96e4f3af5a8ce7e903fae02e01409ffdfdd (patch)
treeed287f2af34e1b26da1a8462a136d624835e85a0 /openstackclient/image
parent1af89f757c1edf44067de964cb6ca8dffbb1969e (diff)
downloadpython-openstackclient-c830d96e4f3af5a8ce7e903fae02e01409ffdfdd.tar.gz
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
Diffstat (limited to 'openstackclient/image')
-rw-r--r--openstackclient/image/v2/image.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/image/v2/image.py b/openstackclient/image/v2/image.py
index 3dd98338..3808f6cf 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)