From d61112ec29507158ba640a2f23a3a63dccee4cf6 Mon Sep 17 00:00:00 2001 From: Runar Borge Date: Sat, 18 Aug 2018 01:44:11 +0200 Subject: T786: Add tagNode value as a Env.variable passed into config script --- scripts/build-command-templates | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/build-command-templates') 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) -- cgit v1.2.3