diff options
| author | John Estabrook <jestabro@vyos.io> | 2025-08-07 18:37:06 -0500 |
|---|---|---|
| committer | John Estabrook <jestabro@vyos.io> | 2025-08-07 18:42:39 -0500 |
| commit | 97e947c959179db47c2b268d53ca15d9cbb89c76 (patch) | |
| tree | 7c5a88cc3e2e76649ce6bddb379857ab0009d108 /python | |
| parent | 96cf89f5fdd415fec930f77e2f70446f999187e4 (diff) | |
| download | vyos-1x-97e947c959179db47c2b268d53ca15d9cbb89c76.tar.gz vyos-1x-97e947c959179db47c2b268d53ca15d9cbb89c76.zip | |
T7699: update check-xml-consistency test for change in field name
Diffstat (limited to 'python')
| -rw-r--r-- | python/vyos/xml_ref/op_definition.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
