We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afc93fc commit 6b333ecCopy full SHA for 6b333ec
backend/infrahub/core/schema/schema_branch.py
@@ -1824,6 +1824,10 @@ def manage_object_template_relationships(self) -> None:
1824
1825
def add_relationships_to_template(self, node: NodeSchema) -> None:
1826
template_schema = self.get(name=self._get_object_template_kind(node_kind=node.kind), duplicate=False)
1827
+ # Remove previous relationships to account for new ones
1828
+ template_schema.relationships = [
1829
+ r for r in template_schema.relationships if r.kind == RelationshipKind.TEMPLATE
1830
+ ]
1831
1832
for relationship in node.relationships:
1833
if relationship.peer in [
0 commit comments