Commit 0f3faa01 authored by Volodymyr Kozachynskyi's avatar Volodymyr Kozachynskyi Committed by oroulet

Fix object creation

parent f27676c1
......@@ -64,7 +64,7 @@ async def create_object(parent, nodeid, bname, objecttype=None):
nodeid, qname = _parse_nodeid_qname(nodeid, bname)
if objecttype is not None:
objecttype = make_node(parent.server, objecttype)
dname = ua.LocalizedText(bname)
dname = ua.LocalizedText(qname.Name)
nodes = await instantiate(parent, objecttype, nodeid, bname=qname, dname=dname)
return nodes[0]
else:
......
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