Commit 26cff6f9 authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: fixup reduce remote node alarm calls

Workflow state was not the correct one.

See 76edda30
parent 3b8fa3dc
instance = state_change['object'] instance = state_change['object']
partition = instance.getAggregateValue() partition = instance.getAggregateValue()
if (partition is not None) and (partition.getParentValue().getPortalType() == 'Remote Node') and (instance.getSlapState() != 'started'): if (partition is not None) and (partition.getParentValue().getPortalType() == 'Remote Node') and (instance.getSlapState() != 'start_requested'):
instance.Base_reindexAndSenseAlarm(['slapos_cloud_propagate_remote_node_instance']) instance.Base_reindexAndSenseAlarm(['slapos_cloud_propagate_remote_node_instance'])
partition.Base_reindexAndSenseAlarm(['slapos_cloud_propagate_remote_node_instance']) partition.Base_reindexAndSenseAlarm(['slapos_cloud_propagate_remote_node_instance'])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment