From 4f09f8a0d32f76b60e548800b31a2bb58c10a95b Mon Sep 17 00:00:00 2001 From: Antonio Cuñat Alario Date: Tue, 10 Dec 2019 18:36:58 +0100 Subject: scripts: import: T1836: fix XML export Fix export xml interfaces from node.def where node.tad doesn't have a node.def file --- scripts/import-conf-mode-commands | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/import-conf-mode-commands') 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 -- cgit v1.2.3