Commit 1d50fc4d authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_pdm: Use ask_confirmation as default in case Upgrade Scope is undefined

parent 56009feb
......@@ -51,7 +51,8 @@ for software_release in software_release_list:
if context.getUpgradeScope() == "auto":
upgrade_decision.start()
elif context.getUpgradeScope() == "ask_confirmation" and upgrade_decision.getSimulationState() != "planned":
elif context.getUpgradeScope("ask_confirmation") == "ask_confirmation" \
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