Quote the state value, it may include spaces.
[icn.git] / deploy / metal3 / scripts / 02_verify.sh
index 09030c1..a6a1023 100755 (executable)
@@ -19,7 +19,7 @@ function check_provisioned {
         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