Merge "Fix Uuid and virtual_free elements load error"

This commit is contained in:
Zuul 2018-03-09 10:00:19 +00:00 committed by Gerrit Code Review
commit 3a529a0f7b
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ class Pool(storage_resource.StorageResource):
"free_capacity_gb": wfields.NonNegativeIntegerField(),
"provisioned_capacity_gb": wfields.NonNegativeIntegerField(),
"allocated_capacity_gb": wfields.NonNegativeIntegerField(),
"virtual_free": wfields.NonNegativeIntegerField(),
"virtual_free": wfields.NonNegativeIntegerField(default=0),
}
def accept(self, visitor):

View File

@ -28,6 +28,6 @@ class StorageResource(base.Element):
VERSION = '1.0'
fields = {
"uuid": wfields.StringField(),
"uuid": wfields.StringField(default=""),
"human_id": wfields.StringField(default=""),
}