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:
@@ -74,7 +74,7 @@ class Pool(storage_resource.StorageResource):
|
|||||||
"free_capacity_gb": wfields.NonNegativeIntegerField(),
|
"free_capacity_gb": wfields.NonNegativeIntegerField(),
|
||||||
"provisioned_capacity_gb": wfields.NonNegativeIntegerField(),
|
"provisioned_capacity_gb": wfields.NonNegativeIntegerField(),
|
||||||
"allocated_capacity_gb": wfields.NonNegativeIntegerField(),
|
"allocated_capacity_gb": wfields.NonNegativeIntegerField(),
|
||||||
"virtual_free": wfields.NonNegativeIntegerField(),
|
"virtual_free": wfields.NonNegativeIntegerField(default=0),
|
||||||
}
|
}
|
||||||
|
|
||||||
def accept(self, visitor):
|
def accept(self, visitor):
|
||||||
|
|||||||
@@ -28,6 +28,6 @@ class StorageResource(base.Element):
|
|||||||
VERSION = '1.0'
|
VERSION = '1.0'
|
||||||
|
|
||||||
fields = {
|
fields = {
|
||||||
"uuid": wfields.StringField(),
|
"uuid": wfields.StringField(default=""),
|
||||||
"human_id": wfields.StringField(default=""),
|
"human_id": wfields.StringField(default=""),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user