Commit 7699bd37 authored by Romain Courteaud's avatar Romain Courteaud

slapos_upgrader: fixup

parent 952b0676
...@@ -75,6 +75,7 @@ for soft, variation_dict in soft_dict.items(): ...@@ -75,6 +75,7 @@ for soft, variation_dict in soft_dict.items():
software_product = portal.portal_catalog.getResultValue( software_product = portal.portal_catalog.getResultValue(
portal_type="Software Product", portal_type="Software Product",
title={'query': soft, 'key': 'ExactMatch'},
follow_up__uid=project.getUid() follow_up__uid=project.getUid()
) )
if software_product is None: if software_product is None:
...@@ -89,7 +90,7 @@ for soft, variation_dict in soft_dict.items(): ...@@ -89,7 +90,7 @@ for soft, variation_dict in soft_dict.items():
for software_type in list(set(variation_dict['type_list'])): for software_type in list(set(variation_dict['type_list'])):
type_variation = portal.portal_catalog.getResultValue( type_variation = portal.portal_catalog.getResultValue(
portal_type="Software Product Type Variation", portal_type="Software Product Type Variation",
title=software_type, title={'query': software_type, 'key': 'ExactMatch'},
parent_uid=software_product.getUid() parent_uid=software_product.getUid()
) )
if type_variation is None: if type_variation is None:
...@@ -104,7 +105,7 @@ for soft, variation_dict in soft_dict.items(): ...@@ -104,7 +105,7 @@ for soft, variation_dict in soft_dict.items():
for software_release in release_list: for software_release in release_list:
software_release_variation = portal.portal_catalog.getResultValue( software_release_variation = portal.portal_catalog.getResultValue(
portal_type="Software Product Release Variation", portal_type="Software Product Release Variation",
url_string=software_release, url_string={'query': software_release, 'key': 'ExactMatch'},
parent_uid=software_product.getUid() parent_uid=software_product.getUid()
) )
if software_release_variation is None: if software_release_variation 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