From d8433ee40a6a8ea3af70572ad1928edd09636309 Mon Sep 17 00:00:00 2001 From: Brian Waldon Date: Wed, 11 Jul 2012 16:19:08 -0700 Subject: [PATCH] Change --protected to --is-protected in create Make image-create match image-update when specifying a specific value for 'protected'. Fix bug 1023650 Change-Id: I02ddeb59c1f6882b206279a71f7af8889ce4602c --- glanceclient/v1/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glanceclient/v1/shell.py b/glanceclient/v1/shell.py index abe165e..da3b6dc 100644 --- a/glanceclient/v1/shell.py +++ b/glanceclient/v1/shell.py @@ -102,7 +102,7 @@ def do_image_show(gc, args): ' store it in its configured image store.')) @utils.arg('--public', action='store_true', default=False, help='Make image accessible to the public.') -@utils.arg('--protected', action='store_true', default=False, +@utils.arg('--is-protected', type=utils.string_to_bool, help='Prevent image from being deleted.') @utils.arg('--property', metavar="", action='append', default=[], help=("Arbitrary property to associate with image. "