summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
deb3ca8)
This prevents the "./02_verify.sh: line 22: [: too many arguments"
error when the state is, for example, "registration error".
Issue-ID: ICN-476
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Change-Id: I2228a127e3e4cff56c8689af6fe0accd3e3b3240
state=$(kubectl get baremetalhosts $name -n metal3 -o json | jq -r '.status.provisioning.state')
echo "Baremetal host metal3 state - "$name" : "$state
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