Commit 7d347f68 authored by Romain Courteaud's avatar Romain Courteaud

slapos_cloud: keep compatibility with project_guid sla

parent 2609bce5
...@@ -112,6 +112,11 @@ if 'network_guid' in filter_kw: ...@@ -112,6 +112,11 @@ if 'network_guid' in filter_kw:
network_guid = filter_kw.pop('network_guid') network_guid = filter_kw.pop('network_guid')
query_kw["default_subordination_reference"] = SimpleQuery(default_subordination_reference=network_guid) query_kw["default_subordination_reference"] = SimpleQuery(default_subordination_reference=network_guid)
if 'project_guid' in filter_kw:
# This is kept for compatibility for instance trees containing such parameter
# If the reference does not match the project_uid, it will never be allocated
query_kw['parent__follow_up__reference'] = filter_kw.pop("project_guid")
if computer_network_query: if computer_network_query:
if query_kw.get("default_subordination_reference"): if query_kw.get("default_subordination_reference"):
query_kw["default_subordination_reference"] = ComplexQuery( query_kw["default_subordination_reference"] = ComplexQuery(
......
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