Update action json schema
Power-off actions created by the energy saving strategy include a resource name property, which currently isn't part of the action json schema. For this reason, json schema validation fails. Additional properties are not allowed ('resource_name' was unexpected) We'll update the json schema, including the resource name property. Change-Id: I924d36732a917c0be98b08c2f4128e9136356215
This commit is contained in:
parent
3b224b5629
commit
808f1bcee3
@ -59,6 +59,10 @@ class ChangeNodePowerState(base.BaseAction):
|
|||||||
'type': 'string',
|
'type': 'string',
|
||||||
"minlength": 1
|
"minlength": 1
|
||||||
},
|
},
|
||||||
|
'resource_name': {
|
||||||
|
'type': 'string',
|
||||||
|
"minlength": 1
|
||||||
|
},
|
||||||
'state': {
|
'state': {
|
||||||
'type': 'string',
|
'type': 'string',
|
||||||
'enum': [NodeState.POWERON.value,
|
'enum': [NodeState.POWERON.value,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user