Skip to content

Commit f521e35

Browse files
authored
Update node.py
1 parent 9e01a40 commit f521e35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infrahub_sdk/node/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ def save(
12201220
if "CoreGroup" in self._schema.inherit_from:
12211221
if self.id is None:
12221222
raise UninitializedError("Cannot add related nodes before the node has an ID")
1223-
self._client.group_context.add_related_nodes(ids=[self.id], update_group_context=update_group_context)
1223+
self._client.group_context.add_related_groups(ids=[self.id], update_group_context=update_group_context)
12241224

12251225
else:
12261226
if self.id is None:

0 commit comments

Comments
 (0)