Commit 11755598 authored by Romain Courteaud's avatar Romain Courteaud

slapos_pdm: set the causality relation on the ticket

parent f52598e9
from DateTime import DateTime
portal = context.getPortalObject()
from zExceptions import Unauthorized
if REQUEST is not None:
raise Unauthorized
instance_tree = context
......@@ -108,6 +111,8 @@ if len(allocation_cell_list) == 1:
resource_value=software_product,
variation_category_list=allocation_cell_list[0].getVariationCategoryList(),
aggregate_value=instance_tree,
# As a ticket, give the ticket original context
causality_value=instance_tree,
)
with upgrade_decision.defaultActivateParameterDict({'tag': tag}):
......
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>target_software_release=None, target_software_type=None</string> </value>
<value> <string>REQUEST=None, target_software_release=None, target_software_type=None</string> </value>
</item>
<item>
<key> <string>id</string> </key>
......
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