diff options
Diffstat (limited to 'glanceclient/v2')
-rw-r--r-- | glanceclient/v2/shell.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/glanceclient/v2/shell.py b/glanceclient/v2/shell.py index b4dc811..8414308 100644 --- a/glanceclient/v2/shell.py +++ b/glanceclient/v2/shell.py @@ -840,15 +840,15 @@ def do_image_reactivate(gc, args): @utils.arg('tag_value', metavar='<TAG_VALUE>', help=_('Value of the tag.')) def do_image_tag_update(gc, args): - """Update an image with the given tag.""" - if not (args.image_id and args.tag_value): - utils.exit('Unable to update tag. Specify image_id and tag_value') - else: - gc.image_tags.update(args.image_id, args.tag_value) - image = gc.images.get(args.image_id) - image = [image] - columns = ['ID', 'Tags'] - utils.print_list(image, columns) + """Update an image with the given tag.""" + if not (args.image_id and args.tag_value): + utils.exit('Unable to update tag. Specify image_id and tag_value') + else: + gc.image_tags.update(args.image_id, args.tag_value) + image = gc.images.get(args.image_id) + image = [image] + columns = ['ID', 'Tags'] + utils.print_list(image, columns) @utils.arg('image_id', metavar='<IMAGE_ID>', |