Fix Uuid and virtual_free elements load error

NotImplementedError are reported in decision-engine log file
when we activate storage data model and see a Guru Meditation Report.
This patch fixes by adding default values.

Change-Id: I06386f8295f7758cbb633612eee8b19225905c92
Closes-Bug: #1750300
This commit is contained in:
Hidekazu Nakamura 2018-03-06 16:52:27 +09:00
parent bd8c5c684c
commit a7ab77078e
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=""),
}