Add default values to several Glance::Image props
Default values described in properties descriptions, but not specified. So, need to specify it in schema. Also, protected property defined with False by default in Glance, so need to update Heat side with default value of property. Change-Id: I6d50068565d8aa460c82347d5539f878339f9c15
This commit is contained in:
parent
4735515272
commit
571b4f6168
@ -58,7 +58,8 @@ class GlanceImage(resource.Resource):
|
||||
'and means no limit on the disk size.'),
|
||||
constraints=[
|
||||
constraints.Range(min=0),
|
||||
]
|
||||
],
|
||||
default=0
|
||||
),
|
||||
MIN_RAM: properties.Schema(
|
||||
properties.Schema.INTEGER,
|
||||
@ -66,12 +67,14 @@ class GlanceImage(resource.Resource):
|
||||
'is 0 if not specified and means no limit on the ram size.'),
|
||||
constraints=[
|
||||
constraints.Range(min=0),
|
||||
]
|
||||
],
|
||||
default=0
|
||||
),
|
||||
PROTECTED: properties.Schema(
|
||||
properties.Schema.BOOLEAN,
|
||||
_('Whether the image can be deleted. If the value is True, '
|
||||
'the image is protected and cannot be deleted.')
|
||||
'the image is protected and cannot be deleted.'),
|
||||
default=False
|
||||
),
|
||||
DISK_FORMAT: properties.Schema(
|
||||
properties.Schema.STRING,
|
||||
|
Loading…
Reference in New Issue
Block a user