Skip to content

Commit c830d96

Browse files
author
David Moreau Simard
committed
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
1 parent 1af89f7 commit c830d96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

openstackclient/image/v2/image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def take_action(self, parsed_args):
219219
image_client.images,
220220
parsed_args.image,
221221
)
222-
data = image_client.images.data(image)
222+
data = image_client.images.data(image.id)
223223

224224
gc_utils.save_image(data, parsed_args.file)
225225

0 commit comments

Comments
 (0)