X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fopenstack-kubernetes-create.sh;h=3d9d00b1eab4c2f6f9db521eb3754f34f8f74805;hb=987dd81473e9c5090aab1e80ad47acd1f7974d7c;hp=e94dc948b3bc2387614c8f2c739d72c42f6a36c9;hpb=40d61a6fd4fdc64240fc298e039d9f88215e5e40;p=releng%2Fglobal-jjb.git diff --git a/shell/openstack-kubernetes-create.sh b/shell/openstack-kubernetes-create.sh index e94dc948..3d9d00b1 100755 --- a/shell/openstack-kubernetes-create.sh +++ b/shell/openstack-kubernetes-create.sh @@ -64,8 +64,7 @@ while [ "$(openstack --os-cloud "$os_cloud" coe cluster show "$cluster_uuid" -c sleep 2m done -if [ "$(openstack --os-cloud "$os_cloud" coe cluster show "$cluster_uuid" -c status -f value)" == "CREATE_FAILED" ] -then +if [ "$(openstack --os-cloud "$os_cloud" coe cluster show "$cluster_uuid" -c status -f value)" == "CREATE_FAILED" ]; then echo "Failed to create cluster: $cluster_uuid $(date)" openstack --os-cloud "$os_cloud" coe cluster delete "$cluster_uuid" sleep 5m @@ -73,7 +72,6 @@ then exit 1 fi -if [ "$(openstack --os-cloud "$os_cloud" coe cluster show "$cluster_uuid" -c status -f value)" == "CREATE_COMPLETE" ] -then +if [ "$(openstack --os-cloud "$os_cloud" coe cluster show "$cluster_uuid" -c status -f value)" == "CREATE_COMPLETE" ]; then echo "Successfully created cluster: $cluster_uuid." fi