summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-03 17:25:59 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-03 17:25:59 +0200
commitfd5b81f66e44a75e0df0f0774d4d23c400d29a21 (patch)
tree554f3ffce8df1c8ee084935dc2474d6ceb1f5dec /scripts
parent1ca732305a1f3cea854b1c9ed182f547982145a6 (diff)
downloadvyos-1x-fd5b81f66e44a75e0df0f0774d4d23c400d29a21.tar.gz
vyos-1x-fd5b81f66e44a75e0df0f0774d4d23c400d29a21.zip
Enable debug mode to build-command-templates
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-command-templates3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/build-command-templates b/scripts/build-command-templates
index 767517b29..457adbec2 100755
--- a/scripts/build-command-templates
+++ b/scripts/build-command-templates
@@ -249,7 +249,8 @@ def process_node(n, tmpl_dir):
my_tmpl_dir.append(name)
- print("Name of the node: {0}. Created directory: {1}\n".format(name, "/".join(my_tmpl_dir)), end="")
+ if debug:
+ print("Name of the node: {0}. Created directory: {1}\n".format(name, "/".join(my_tmpl_dir)), end="")
os.makedirs(make_path(my_tmpl_dir), exist_ok=True)
props = get_properties(props_elem)