From 848679829dd7f86094a13ccfdb6d3e5e31916b19 Mon Sep 17 00:00:00 2001 From: Bridget Kromhout Date: Fri, 2 Mar 2018 18:18:04 -0600 Subject: [PATCH] Removed -i and trailing space --- prepare-vms/lib/commands.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"