summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/vyos/xml_ref/op_definition.py1
1 files changed, 1 insertions, 0 deletions
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)