Commit 604567c9 authored by Romain Courteaud's avatar Romain Courteaud

slapos_upgrader: do not migrate payable instances on the project_guid project

Instances were not allocated on this project in reality.
parent 59b2f240
Pipeline #36383 failed with stage
in 0 seconds
......@@ -38,7 +38,9 @@ for sql_instance in portal.portal_catalog(specialise__uid=instance_tree.getUid()
# Node requested to be allocated on a specific project
# Use this one first, as it is currently used for payable service
# and so, it must be kept on the project with the payable trade condition
if (software_instance is not None) and (sla_xml_dict.get('project_guid', None) is not None):
# Update: in reality, those instances are not hosted on nodes from this project
# so drop this condition
if 0:#(software_instance is not None) and (sla_xml_dict.get('project_guid', None) is not None):
project_reference = sla_xml_dict.get('project_guid', None)
project = portal.portal_catalog.getResultValue(portal_type='Project', reference=project_reference)
if project is not 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