Commit 3cc9f2b9 authored by Łukasz Nowak's avatar Łukasz Nowak

- synchronise with correct handling of software type, use correctly

   source_reference
 - as Software Instance is asked directly, there is no reason to use
   title


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43766 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bb1c06a8
...@@ -584,9 +584,12 @@ class SlapTool(BaseTool): ...@@ -584,9 +584,12 @@ class SlapTool(BaseTool):
requested_software_instance = software_instance_document.portal_catalog.\ requested_software_instance = software_instance_document.portal_catalog.\
getResultValue( getResultValue(
portal_type="Software Instance", portal_type="Software Instance",
source_reference=partition_reference, source_reference=software_type,
title=software_type, # predecessor_related_uid is inconsistent with
predecessor_related_uid=software_instance_document.getUid(),) # SoftwareInstancae.requestSoftwareInstance but in this case it
# is assumed, that data are correct
predecessor_related_uid=software_instance_document.getUid(),
)
if requested_software_instance is None: if requested_software_instance is None:
raise SoftwareInstanceNotReady raise SoftwareInstanceNotReady
......
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