X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=deploy%2Fmetal3%2Fscripts%2F02_verify.sh;h=a6a1023b044d78ef471e83c9ba14cc0e6695e223;hb=03f301ffa25a248fdd8f17d210b20ace4d1bf42f;hp=85a2a29bf032eb1675968431d2ca2c264d3c2f57;hpb=802e1f9ef59d38f337ca291df6bf1fb140ef7404;p=icn.git diff --git a/deploy/metal3/scripts/02_verify.sh b/deploy/metal3/scripts/02_verify.sh index 85a2a29..a6a1023 100755 --- a/deploy/metal3/scripts/02_verify.sh +++ b/deploy/metal3/scripts/02_verify.sh @@ -14,12 +14,12 @@ function check_provisioned { declare -i prev_host_state=0 declare -i j=0 echo "Baremetal state: 1 means provisioned & 0 means not yet provisioned" - while read -r name username password address; do + while IFS=',' read -r name ipmi_username ipmi_password ipmi_address os_username os_password os_image_name; do declare -i current_host_state=0 state=$(kubectl get baremetalhosts $name -n metal3 -o json | jq -r '.status.provisioning.state') echo "Baremetal host metal3 state - "$name" : "$state - if [ $state == "provisioned" ];then + if [ "$state" == "provisioned" ];then current_host_state=1 fi