Fix variable name
Change-Id: Ie824b917642968f8e384b80ee3d77dcf6acbe1dd
diff --git a/deploy-k8s-deployments.groovy b/deploy-k8s-deployments.groovy
index 0f459cd..fc33f5b 100644
--- a/deploy-k8s-deployments.groovy
+++ b/deploy-k8s-deployments.groovy
@@ -20,7 +20,7 @@
stage("Update components") {
common.infoMsg("Setting up components..")
out = salt.cmdRun(
- master,
+ saltMaster,
targetExpression,
'/bin/bash -c \'find /srv/kubernetes/ -type d | grep -v jobs | while read i; do ls $i/*.yml &>/dev/null && (set -x; hyperkube kubectl apply -f $i || echo Command failed; set +x); done; jobs=$(hyperkube kubectl get jobs -o name); find /srv/kubernetes/jobs -type f -name "*.yml" | while read i; do name=$(grep "name:" $i | head -1 | awk "{print $NF}"); echo $jobs|grep $name >/dev/null || (set -x; hyperkube kubectl apply -f $i || echo Command failed; set +x);done\''
)