Commit 21324a1f authored by Romain Courteaud's avatar Romain Courteaud

Do not create useless new hosting packing list

parent 2762176d
...@@ -192,7 +192,7 @@ else:\n ...@@ -192,7 +192,7 @@ else:\n
if (service_relative_url == setup_service_relative_url):\n if (service_relative_url == setup_service_relative_url):\n
if (state == started):\n if (state == started):\n
new_delivery = letsclone(hosting_service_relative_url)\n new_delivery = letsclone(hosting_service_relative_url)\n
new_delivery.start()\n new_delivery.confirm()\n
instance.edit(causality_value=new_delivery)\n instance.edit(causality_value=new_delivery)\n
elif (state == stopped):\n elif (state == stopped):\n
pass\n pass\n
...@@ -207,13 +207,14 @@ else:\n ...@@ -207,13 +207,14 @@ else:\n
if (state == started):\n if (state == started):\n
if (delivery.getSimulationState() == \'stopped\'):\n if (delivery.getSimulationState() == \'stopped\'):\n
delivery.deliver()\n delivery.deliver()\n
new_delivery = letsclone(hosting_service_relative_url)\n new_delivery = letsclone(hosting_service_relative_url)\n
new_delivery.confirm()\n new_delivery.confirm()\n
instance.edit(causality_value=new_delivery)\n instance.edit(causality_value=new_delivery)\n
elif (state == stopped):\n elif (state == stopped):\n
delivery.edit(stop_date=DateTime())\n delivery.edit(stop_date=DateTime())\n
delivery.stop()\n delivery.stop()\n
elif (state == destroyed):\n elif (state == destroyed):\n
delivery.deliver()\n
new_delivery = letsclone(cleanup_service_relative_url)\n new_delivery = letsclone(cleanup_service_relative_url)\n
new_delivery.confirm()\n new_delivery.confirm()\n
instance.edit(causality_value=new_delivery)\n instance.edit(causality_value=new_delivery)\n
......
10 11
\ 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