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
This commit is contained in:
David Moreau Simard 2015-07-15 15:40:51 -04:00
parent 1af89f757c
commit c830d96e4f

View File

@ -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)