diff --git a/prepare-vms/lib/commands.sh b/prepare-vms/lib/commands.sh index 7b4a70d3..7b33e5fc 100644 --- a/prepare-vms/lib/commands.sh +++ b/prepare-vms/lib/commands.sh @@ -175,10 +175,10 @@ _cmd kubetest "Check that all notes are reporting as Ready" _cmd_kubetest() { # There are way too many backslashes in the command below. # Feel free to make that better ♥ - pssh -i " + pssh " set -e if grep -q node1 /tmp/node; then - for NODE in \$(awk /\ node/\ {print\ \\\$2} /etc/hosts); do + for NODE in \$(awk /\ node/\ {print\ \\\$2} /etc/hosts); do echo \$NODE ; kubectl get nodes | grep -w \$NODE | grep -w Ready done fi"