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
This commit is contained in:
Brian Waldon
2012-07-11 16:19:08 -07:00
parent db1fabed11
commit d8433ee40a
+1 -1
View File
@@ -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="<key=value>", action='append', default=[],
help=("Arbitrary property to associate with image. "