Commit f21019a2 authored by ratara's avatar ratara Committed by oroulet

refactored parameter name

parent b6fece16
......@@ -508,16 +508,16 @@ class NodeManagementService:
def _add_node_attr(
self,
item: __TYPE_ATTRIBUTES,
attributes: __TYPE_ATTRIBUTES,
nodedata: NodeData,
name: str,
vtype: VariantType = None,
add_timestamps: bool = False,
is_array: bool = False
):
if item.SpecifiedAttributes & getattr(ua.NodeAttributesMask, name):
if attributes.SpecifiedAttributes & getattr(ua.NodeAttributesMask, name):
dv = ua.DataValue(
ua.Variant(getattr(item, name), vtype, is_array=is_array),
ua.Variant(getattr(attributes, name), vtype, is_array=is_array),
SourceTimestamp=datetime.utcnow() if add_timestamps else None,
)
nodedata.attributes[getattr(ua.AttributeIds, name)] = AttributeValue(dv)
......
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