Skip to content

Commit 254f8ef

Browse files
committed
Fix syntax for Python 3.9
1 parent 27a6c27 commit 254f8ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infrahub_sdk/node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -837,7 +837,7 @@ def _generate_input_data(self, exclude_unmodified: bool = False, exclude_hfid: b
837837
if rel is None or not rel.initialized:
838838
continue
839839

840-
if isinstance(rel, RelatedNode | RelatedNodeSync) and rel.is_resource_pool:
840+
if isinstance(rel, (RelatedNode, RelatedNodeSync)) and rel.is_resource_pool:
841841
# If the relatiionship is a resource pool and the expected schema is different from the one of the pool, this means we expect to get
842842
# a resource from the pool itself
843843
allocate_from_pool = rel_schema.peer != rel.peer._schema.kind

0 commit comments

Comments
 (0)