From b396e73e73fa1c351d0a8fd106fe4e8d50379658 Mon Sep 17 00:00:00 2001 From: NiallBunting Date: Tue, 15 Sep 2015 16:17:58 +0000 Subject: [PATCH] Remove self from image-create/image-update Self is not meant to exist as it is a READ ONLY property, that is not meant to exist as something the user can change. Closes-bug: 1496024 Change-Id: I28fd51a4cbef40fc7c90999fe8121611c7f89f21 --- glanceclient/v2/shell.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/glanceclient/v2/shell.py b/glanceclient/v2/shell.py index 3ae5d41e..5a292d84 100644 --- a/glanceclient/v2/shell.py +++ b/glanceclient/v2/shell.py @@ -46,7 +46,7 @@ def get_image_schema(): @utils.schema_args(get_image_schema, omit=['created_at', 'updated_at', 'file', 'checksum', 'virtual_size', 'size', 'status', 'schema', 'direct_url', - 'locations']) + 'locations', 'self']) @utils.arg('--property', metavar="", action='append', default=[], help=('Arbitrary property to associate with image.' ' May be used multiple times.')) @@ -90,7 +90,8 @@ def do_image_create(gc, args): @utils.schema_args(get_image_schema, omit=['id', 'locations', 'created_at', 'updated_at', 'file', 'checksum', 'virtual_size', 'size', 'status', - 'schema', 'direct_url', 'tags']) + 'schema', 'direct_url', 'tags', + 'self']) @utils.arg('--property', metavar="", action='append', default=[], help=('Arbitrary property to associate with image.' ' May be used multiple times.'))