Merge "Add default values to several Glance::Image props"

This commit is contained in:
Jenkins 2016-01-25 09:19:43 +00:00 committed by Gerrit Code Review
commit 5692e9b6bd

View File

@ -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,