diff options
author | Zhi Yan Liu <zhiyanl@cn.ibm.com> | 2014-07-10 13:54:35 +0800 |
---|---|---|
committer | Zhi Yan Liu <zhiyanl@cn.ibm.com> | 2014-07-10 13:54:35 +0800 |
commit | 8770586e7a14d1954bf759349297833f706c8d2a (patch) | |
tree | bca9f2e86a71549d3ba49f68c157581385607a62 | |
parent | d613adc434e93c24d7c3bb34849d2aed1710e0d5 (diff) | |
download | python-glanceclient-8770586e7a14d1954bf759349297833f706c8d2a.tar.gz |
CLI image-update gives a wrong help on '--tags' param
The help message tells end user image-update interface accepts 'tags'
param and could be used to update tag of image [0], but actually it
could trigger an 400 exception [1] due to wrong PATCH calls, and the
correct way is to use image-tag-update interface [2] as designed.
[0] glance image-update <IMG_ID> --tags <TAG_VALUE>
[1] 400 Bad Request
Invalid JSON pointer for this resource: '/tags/0'
(HTTP 400)
[2] glance image-tag-update <IMG_ID> <TAG_VALUE>
Change-Id: Iaa8041779510192dc08f7b898b8a1beda29a6398
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
-rw-r--r-- | glanceclient/v2/shell.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glanceclient/v2/shell.py b/glanceclient/v2/shell.py index 4d0e360..9473cf4 100644 --- a/glanceclient/v2/shell.py +++ b/glanceclient/v2/shell.py @@ -57,7 +57,7 @@ def do_image_create(gc, args): @utils.arg('id', metavar='<IMAGE_ID>', help='ID of image to update.') -@utils.schema_args(get_image_schema, omit=['id', 'locations']) +@utils.schema_args(get_image_schema, omit=['id', 'locations', 'tags']) @utils.arg('--property', metavar="<key=value>", action='append', default=[], help=('Arbitrary property to associate with image.' ' May be used multiple times.')) |