X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=deploy%2Fmetal3%2Fscripts%2F02_verify.sh;h=cc2a87da97894fef7a1bd50ce12b7b6f7efd050b;hb=8fcb874a6e5ec52b4a6ac80cb7f34c7baccd8c17;hp=09030c1917a53052b8d205a8e547950b122e4373;hpb=deb3ca8295b2e585e47e51730252dc2ec1daa429;p=icn.git diff --git a/deploy/metal3/scripts/02_verify.sh b/deploy/metal3/scripts/02_verify.sh index 09030c1..cc2a87d 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 IFS=',' read -r name ipmi_username ipmi_password ipmi_address os_username os_password os_image_name; do + while IFS=',' read -r name ipmi_username ipmi_password ipmi_address boot_mac 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