Commit 39b70b08 authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: fixup upgrade decision action

parent bd206cde
portal = context.getPortalObject()
Base_translateString = portal.Base_translateString
instance_tree = context
software_product, _, software_type = instance_tree.InstanceTree_getSoftwareProduct()
upgrade_decision = context.InstanceTree_createUpgradeDecision(
target_software_release=target_software_release,
target_software_type=context.getSourceReference()
target_software_release=portal.portal_catalog.getResultValue(
portal_type="Software Product Release Variation",
url_string=target_software_release,
parent_uid=software_product.getUid()
),
target_software_type=software_type
)
if upgrade_decision is None:
......
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