Add reource_name in action input parameter field

(Partial implement)
Implements: blueprint add-resource-name-in-action-input-parameter-field

Depends-on: I51d879e31dee03652ee9d0d94a7f3168012cc060
Change-Id: I708cf63ff1d9a989604e1d5b834c8b7e5b087892
This commit is contained in:
chenke
2019-05-20 11:39:07 +08:00
parent 46cc09f00e
commit dc2c361d04
14 changed files with 117 additions and 66 deletions

View File

@@ -46,6 +46,7 @@ class Instance(compute_resource.ComputeResource):
# If the resource is excluded by the scope,
# 'watcher_exclude' property will be set True.
"watcher_exclude": wfields.BooleanField(default=False),
"name": wfields.StringField(),
"state": wfields.StringField(default=InstanceState.ACTIVE.value),
"memory": wfields.NonNegativeIntegerField(),
"disk": wfields.IntegerField(),