summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2019-04-21 16:23:43 +0700
committerGitHub <noreply@github.com>2019-04-21 16:23:43 +0700
commit644862248b71c9e711fe017aa216b99f2c3d302d (patch)
treefab4c316157cb74c5c4857b6e12b37b9c38b2748
parentf8b7e3b2b20d143643bfac72db68943dfc9046f1 (diff)
parentd61112ec29507158ba640a2f23a3a63dccee4cf6 (diff)
downloadvyos-1x-644862248b71c9e711fe017aa216b99f2c3d302d.tar.gz
vyos-1x-644862248b71c9e711fe017aa216b99f2c3d302d.zip
Merge pull request #33 from runborg/current
T786: Add tagNode value as a Env.variable passed into config script
-rwxr-xr-xscripts/build-command-templates5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/build-command-templates b/scripts/build-command-templates
index 07e7d522a..a7312f77b 100755
--- a/scripts/build-command-templates
+++ b/scripts/build-command-templates
@@ -226,7 +226,10 @@ def make_node_def(props):
node_def += "syntax:expression: {0}\n".format(props["constraint"])
if "owner" in props:
- node_def += "end: sudo sh -c \"{0}\"\n".format(props["owner"])
+ if "tag" in props:
+ node_def += "end: sudo sh -c \"VALUE='$VAR(@)' {0}\"\n".format(props["owner"])
+ else:
+ node_def += "end: sudo sh -c \"{0}\"\n".format(props["owner"])
if debug:
print("The contents of the node.def file:\n", node_def)