diff options
author | Runar Borge <runar@borge.nu> | 2018-08-18 01:44:11 +0200 |
---|---|---|
committer | Runar Borge <runar@borge.nu> | 2018-08-18 01:44:11 +0200 |
commit | d61112ec29507158ba640a2f23a3a63dccee4cf6 (patch) | |
tree | 5c2c8b40c6b1fd668420151e508af316db6be00a /scripts/build-command-templates | |
parent | 86088fa6e0816cb7e79ce497a89df2d004bc4764 (diff) | |
download | vyos-1x-d61112ec29507158ba640a2f23a3a63dccee4cf6.tar.gz vyos-1x-d61112ec29507158ba640a2f23a3a63dccee4cf6.zip |
T786: Add tagNode value as a Env.variable passed into config script
Diffstat (limited to 'scripts/build-command-templates')
-rwxr-xr-x | scripts/build-command-templates | 5 |
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) |