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:
@@ -323,7 +323,8 @@ class BasicConsolidation(base.ServerConsolidationBaseStrategy):
|
||||
|
||||
def add_action_disable_node(self, node):
|
||||
parameters = {'state': element.ServiceState.DISABLED.value,
|
||||
'disabled_reason': self.REASON_FOR_DISABLE}
|
||||
'disabled_reason': self.REASON_FOR_DISABLE,
|
||||
'resource_name': node.hostname}
|
||||
self.solution.add_action(action_type=self.CHANGE_NOVA_SERVICE_STATE,
|
||||
resource_id=node.uuid,
|
||||
input_parameters=parameters)
|
||||
|
||||
Reference in New Issue
Block a user