Commit c03a528a authored by Andreas Heine's avatar Andreas Heine Committed by GitHub

Update instantiate_util.py

parent 73b4f2f6
......@@ -98,7 +98,7 @@ async def _instantiate_node(server,
c_rdesc.BrowseName, addnode.BrowseName)
continue
# exclude nodes with optional ModellingRule if requested
if refs[0].nodeid == ua.NodeId(ua.ObjectIds.ModellingRule_Optional):
if refs[0].nodeid in (ua.NodeId(ua.ObjectIds.ModellingRule_Optional), ua.NodeId(ua.ObjectIds.ModellingRule_OptionalPlaceholder)):
# instatiate optionals
if not instantiate_optional:
logger.info("Instantiate: Skip optional node %s as part of %s", c_rdesc.BrowseName,
......
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