Fix logic problem with waiting for puppet.

Change-Id: Ic1bfef5b98900206a525cb488d60fed942c15d05
This commit is contained in:
James E. Blair
2011-09-15 08:59:08 -07:00
parent 7eec2e69d8
commit 4201578eae

View File

@@ -11,10 +11,10 @@ HOSTS=$@
echo "Jenkins: Waiting for puppet to complete on all nodes"
DONE=0
while [ $DONE != 1 ]; do
DONE=0
DONE=1
for hostname in $HOSTS
do
if (grep "$hostname $FINISH_RE" $LOGFILE >/dev/null); then DONE=1; fi
if !(grep "$hostname $FINISH_RE" $LOGFILE >/dev/null); then DONE=0; fi
done
sleep 5
done