diff options
author | Antonio Cuñat Alario <toni@cunyat.net> | 2019-12-10 18:36:58 +0100 |
---|---|---|
committer | Antonio Cuñat Alario <toni@cunyat.net> | 2019-12-10 18:36:58 +0100 |
commit | 4f09f8a0d32f76b60e548800b31a2bb58c10a95b (patch) | |
tree | 89aa00111df148a50031c07993531d724390995d | |
parent | 9080dda455052203c5b53d9d1f8bf08156c9af51 (diff) | |
download | vyos-1x-4f09f8a0d32f76b60e548800b31a2bb58c10a95b.tar.gz vyos-1x-4f09f8a0d32f76b60e548800b31a2bb58c10a95b.zip |
scripts: import: T1836: fix XML export
Fix export xml interfaces from node.def where node.tad doesn't have a node.def file
-rwxr-xr-x | scripts/import-conf-mode-commands | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/import-conf-mode-commands b/scripts/import-conf-mode-commands index 4bdd5ee03..3980b0cf4 100755 --- a/scripts/import-conf-mode-commands +++ b/scripts/import-conf-mode-commands @@ -74,7 +74,7 @@ def walk(tree, base_path, name): # Tag node dirs will always have 'node.tag' subdir and 'node.def' file # Leaf node dirs have nothing but a 'node.def' file # Everything that doesn't match either of these patterns is a normal node - if contents == ['node.tag', 'node.def']: + if 'node.tag' in contents: print("Creating a tag node from {0}".format(path)) elem = etree.Element('tagNode') node_type = TAG_NODE |