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

Fix state detection.

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