From 9b164d6cb3f0729c403745e935e13863dec7928f Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Wed, 30 Jul 2025 15:20:20 -0500 Subject: T7672: collapse children field from list[tuple] to list[str] A missing detail in the collapse function left children as a list of tuples (node name, node type). --- python/vyos/xml_ref/op_definition.py | 1 + 1 file changed, 1 insertion(+) (limited to 'python') diff --git a/python/vyos/xml_ref/op_definition.py b/python/vyos/xml_ref/op_definition.py index 95492cd17..1a4f53a3a 100644 --- a/python/vyos/xml_ref/op_definition.py +++ b/python/vyos/xml_ref/op_definition.py @@ -161,6 +161,7 @@ def collapse(d: OpData, acc: dict = None) -> tuple[dict, str, bool]: out += '\n' out += f'new: {new_data.file} {new_data.path}\n\n' else: + new_data.children = list(map(lambda t: t[0], new_data.children)) acc[name] = {} acc[name]['__node_data'] = asdict(new_data) inner, o, e = collapse(v) -- cgit v1.2.3