Merge "Add and identify excluded instances in compute CDM"

This commit is contained in:
Zuul
2017-12-13 13:34:33 +00:00
committed by Gerrit Code Review
3 changed files with 25 additions and 8 deletions

View File

@@ -42,6 +42,9 @@ class InstanceState(enum.Enum):
class Instance(compute_resource.ComputeResource):
fields = {
# If the resource is excluded by the scope,
# 'watcher_exclude' property will be set True.
"watcher_exclude": wfields.BooleanField(default=False),
"state": wfields.StringField(default=InstanceState.ACTIVE.value),
"memory": wfields.NonNegativeIntegerField(),