Commit 318df743 authored by Romain Courteaud's avatar Romain Courteaud

slapos_panel: fixup upgrade decision action

parent 4fa99ef1
portal = context.getPortalObject() portal = context.getPortalObject()
Base_translateString = portal.Base_translateString Base_translateString = portal.Base_translateString
instance_tree = context
software_product, _, software_type = instance_tree.InstanceTree_getSoftwareProduct()
upgrade_decision = context.InstanceTree_createUpgradeDecision( upgrade_decision = context.InstanceTree_createUpgradeDecision(
target_software_release=target_software_release, target_software_release=portal.portal_catalog.getResultValue(
target_software_type=context.getSourceReference() 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: 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