From 56c27d1cb872936e7177f5ca37b6910e1dcd6b02 Mon Sep 17 00:00:00 2001 From: kairat_kushaev Date: Wed, 20 Jan 2016 12:01:32 +0300 Subject: [PATCH] Change metavar for location commands in V2 Currently location-add, location-delete and location-update shows in help messages as metavar for image id. It may be not clear to the users so we need to change this to . Change-Id: I59c787e449fa34bc792de179993c55f59734b9fe Closes-Bug: #1535220 --- glanceclient/v2/shell.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glanceclient/v2/shell.py b/glanceclient/v2/shell.py index 09a42e6..821febf 100644 --- a/glanceclient/v2/shell.py +++ b/glanceclient/v2/shell.py @@ -388,7 +388,7 @@ def do_image_tag_delete(gc, args): @utils.arg('--metadata', metavar='', default='{}', help=_('Metadata associated with the location. ' 'Must be a valid JSON object (default: %(default)s)')) -@utils.arg('id', metavar='', +@utils.arg('id', metavar='', help=_('ID of image to which the location is to be added.')) def do_location_add(gc, args): """Add a location (and related metadata) to an image.""" @@ -403,7 +403,7 @@ def do_location_add(gc, args): @utils.arg('--url', metavar='', action='append', required=True, help=_('URL of location to remove. May be used multiple times.')) -@utils.arg('id', metavar='', +@utils.arg('id', metavar='', help=_('ID of image whose locations are to be removed.')) def do_location_delete(gc, args): """Remove locations (and related metadata) from an image.""" @@ -415,7 +415,7 @@ def do_location_delete(gc, args): @utils.arg('--metadata', metavar='', default='{}', help=_('Metadata associated with the location. ' 'Must be a valid JSON object (default: %(default)s)')) -@utils.arg('id', metavar='', +@utils.arg('id', metavar='', help=_('ID of image whose location is to be updated.')) def do_location_update(gc, args): """Update metadata of an image's location."""