From 97e947c959179db47c2b268d53ca15d9cbb89c76 Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Thu, 7 Aug 2025 18:37:06 -0500 Subject: T7699: update check-xml-consistency test for change in field name --- python/vyos/xml_ref/op_definition.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/vyos/xml_ref/op_definition.py b/python/vyos/xml_ref/op_definition.py index 1a4f53a3a..d4b767324 100644 --- a/python/vyos/xml_ref/op_definition.py +++ b/python/vyos/xml_ref/op_definition.py @@ -126,13 +126,13 @@ def get_node_data_at_path(d: dict, tpath): def node_data_difference(a: NodeData, b: NodeData): out = '' for fld in fields(NodeData): - if fld.name in ('children', 'file'): + if fld.name in ('children', 'files'): continue a_fld = getattr(a, fld.name) b_fld = getattr(b, fld.name) if a_fld != b_fld: - out += f'prev: {a.file} {a.path} {fld.name}: {a_fld}\n' - out += f'new: {b.file} {b.path} {fld.name}: {b_fld}\n' + out += f'prev: {a.files[-1:]} {a.path} {fld.name}: {a_fld}\n' + out += f'new: {b.files[-1:]} {b.path} {fld.name}: {b_fld}\n' out += '\n' return out -- cgit v1.2.3