From 8770586e7a14d1954bf759349297833f706c8d2a Mon Sep 17 00:00:00 2001 From: Zhi Yan Liu Date: Thu, 10 Jul 2014 13:54:35 +0800 Subject: 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 --tags [1] 400 Bad Request Invalid JSON pointer for this resource: '/tags/0' (HTTP 400) [2] glance image-tag-update Change-Id: Iaa8041779510192dc08f7b898b8a1beda29a6398 Signed-off-by: Zhi Yan Liu --- glanceclient/v2/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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='', 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="", action='append', default=[], help=('Arbitrary property to associate with image.' ' May be used multiple times.')) -- cgit v1.2.1