From 808f1bcee3598ff9cc6bb087c0fb2834b56a8fcd Mon Sep 17 00:00:00 2001 From: Lucian Petrut Date: Wed, 11 Oct 2023 14:25:48 +0300 Subject: [PATCH] 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 --- watcher/applier/actions/change_node_power_state.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/watcher/applier/actions/change_node_power_state.py b/watcher/applier/actions/change_node_power_state.py index aa027fd8b..89e454b3d 100644 --- a/watcher/applier/actions/change_node_power_state.py +++ b/watcher/applier/actions/change_node_power_state.py @@ -59,6 +59,10 @@ class ChangeNodePowerState(base.BaseAction): 'type': 'string', "minlength": 1 }, + 'resource_name': { + 'type': 'string', + "minlength": 1 + }, 'state': { 'type': 'string', 'enum': [NodeState.POWERON.value,