Commit 78bc1928 authored by Andreas Heine's avatar Andreas Heine Committed by GitHub

Update instantiate_util.py

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