Commit dc41efdc authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_pdm: Don't plan an already planned Upgrade Decision

parent 15a47f4d
......@@ -47,7 +47,7 @@ for software_release in software_release_list:
if context.getAllocationScope() in ["open/public", "open/friend", "open/subscription"]:
upgrade_decision.start()
elif context.getAllocationScope() in ["open/personal"]:
elif context.getAllocationScope() in ["open/personal"] and upgrade_decision.getSimulationState() != "planned":
upgrade_decision.plan()
upgrade_decision.setStartDate(DateTime())
......
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