summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)