Commit 92a59dd9 authored by Łukasz Nowak's avatar Łukasz Nowak Committed by Rafael Monnerat

slapos_pdm: Fix HostingSubscription_createUpgradeDecision

The upgrade_scope is disabled, not never, so added disabled and kept never
for backward compatibility.
parent 4b61347e
......@@ -3,7 +3,7 @@ portal = context.getPortalObject()
hosting_subscription = context
upgrade_scope = context.getUpgradeScope()
if upgrade_scope == "never":
if upgrade_scope in ["never", "disabled"]:
return
root_instance = hosting_subscription.getPredecessorValue(portal_type=["Software Instance", "Slave Instance"])
......
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