Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Commit

Permalink
Add an error note for upgrade-opsman-gcp if no disk image is found fo…
Browse files Browse the repository at this point in the history
…r that region

[#154423394]

Signed-off-by: Huan Wang <huwang@pivotal.io>
  • Loading branch information
dtimm authored and fredwangwang committed Apr 20, 2018
1 parent 05f4170 commit d760baa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions upgrade-ops-manager/gcp/tasks/create-cliaas-config/task.sh
Expand Up @@ -21,6 +21,11 @@ ${GCP_SERVICE_ACCOUNT_KEY}
EOF

DISK_IMAGE_PATH=$(grep ${PIVNET_IMAGE_REGION} pivnet-opsmgr/*GCP.yml | awk '{split($0, a); print a[2]}')
if [ -z "DISK_IMAGE_PATH" ]; then
echo Could not find disk image for region \"PIVNET_IMAGE_REGION\". Available choices are:
cat pivnet-opsmgr/*GCP.yml | cut -f1 -d':'
exit 1
fi

cat > cliaas-config/config.yml <<EOF
gcp:
Expand Down

0 comments on commit d760baa

Please sign in to comment.