Commit c01e072b authored by Łukasz Nowak's avatar Łukasz Nowak

Fix state detection.

parent 6dd55384
...@@ -63,16 +63,15 @@ else:\n ...@@ -63,16 +63,15 @@ else:\n
delivery = context.getCausalityValue()\n delivery = context.getCausalityValue()\n
delivery_state = delivery.getSimulationState()\n delivery_state = delivery.getSimulationState()\n
if state == "start_requested":\n if state == "start_requested":\n
if delivery_state in ["confirmed", "started"]:\n if delivery_state == "started":\n
return \'Start in progress\'\n
else:\n
return \'Started\'\n return \'Started\'\n
\n
elif state == "stop_requested":\n
if delivery_state in ["confirmed", "started"]:\n
return \'Stop in progress\'\n
else:\n else:\n
return \'Start in progress\' \n
elif state == "stop_requested":\n
if delivery_state == "stopped":\n
return \'Stopped\'\n return \'Stopped\'\n
else:\n
return \'Stop in progress\'\n
\n \n
elif state in ["destroy_requested"]:\n elif state in ["destroy_requested"]:\n
if has_partition:\n if has_partition:\n
......
748 749
\ No newline at end of file \ No newline at end of file
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