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
This commit is contained in:
NiallBunting
2015-09-15 16:17:58 +00:00
parent 86635868c1
commit b396e73e73

View File

@@ -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="<key=value>", 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="<key=value>", action='append',
default=[], help=('Arbitrary property to associate with image.'
' May be used multiple times.'))