Commit 8955cfe7 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_pdm: Fixup typo

   category close and not closed, and do not auto cancel upgrades for computers for termination.

   This should be handled by setting never on upgrade scope.
parent 4bdb8cee
...@@ -31,11 +31,11 @@ if instance_tree is not None: ...@@ -31,11 +31,11 @@ if instance_tree is not None:
compute_node = upgrade_decision.UpgradeDecision_getAggregateValue("Compute Node") compute_node = upgrade_decision.UpgradeDecision_getAggregateValue("Compute Node")
if compute_node is not None: if compute_node is not None:
if compute_node.getUpgradeScope() in ['never', 'disabled']: if compute_node.getUpgradeScope() in ['never', 'disabled']:
upgrade_decision.cancel("Upgrade scope was disabled on the related Instance Tree") upgrade_decision.cancel("Upgrade scope was disabled on the related Compute Node")
return return
elif compute_node.getAllocationScope() in ["closed/forever", "closed/termination"]: elif compute_node.getAllocationScope() == "close/forever":
upgrade_decision.cancel(comment="Compute Node is closed.") upgrade_decision.cancel(comment="Compute Node is close forever.")
return return
already_deployed = len(portal.portal_catalog(limit=1, already_deployed = len(portal.portal_catalog(limit=1,
......
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