Commit c0635f27 authored by Pavel Spirek's avatar Pavel Spirek

Bug regarding input data namespaces fixed

parent bf5ff439
...@@ -331,8 +331,12 @@ class BaseDatastore: ...@@ -331,8 +331,12 @@ class BaseDatastore:
# Get target member name # Get target member name
input_member_name_fq = tuple(ch.input_data.keys())[0] input_member_name_fq = tuple(ch.input_data.keys())[0]
input_member_name_ns, input_member_name = input_member_name_fq.split(":", maxsplit=1) input_member_name_ns, input_member_name = input_member_name_fq.split(":", maxsplit=1)
# Append it to ii # Append it to ii
sch_pth_list.append(MemberName(input_member_name, None)) if (len(sch_pth_list) == 0) or (sch_pth_list[-1].namespace != input_member_name_ns):
sch_pth_list.append(MemberName(input_member_name, input_member_name_ns))
else:
sch_pth_list.append(MemberName(input_member_name, None))
sch_pth = DataHelpers.ii2str(sch_pth_list) sch_pth = DataHelpers.ii2str(sch_pth_list)
sn = self.get_schema_node(sch_pth) sn = self.get_schema_node(sch_pth)
......
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