Revision history [back]

click to hide/show revision 1
initial version

how to dynamically add step to workflow

I am trying to dynamically add a step to workflow based on running status of linux service.

I added code in file to override "create network" based on the check if da_server service is running, when service is running I can see the step in the workflow but when I disable the service still I see the step

output = subprocess.check_output(['ps', '-ef'])

if 'da_server' in output:

horizon_network_workflows.CreateNetwork.default_steps = \
horizon_network_workflows.CreateNetwork.handle = \
horizon_network_workflows.CreateNetwork._create_network = \