From 6710d6e6988d4a70e8c99c5726bf7792b5a58b97 Mon Sep 17 00:00:00 2001 From: Sebastian Haderecker Date: Tue, 14 May 2019 14:04:15 +0000 Subject: [PATCH] Print error message on wrong API credentials --- cloud/open-telekom-cloud/deploy_ansible_otc_t-pot.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cloud/open-telekom-cloud/deploy_ansible_otc_t-pot.sh b/cloud/open-telekom-cloud/deploy_ansible_otc_t-pot.sh index b1d352a9..072ce0e1 100755 --- a/cloud/open-telekom-cloud/deploy_ansible_otc_t-pot.sh +++ b/cloud/open-telekom-cloud/deploy_ansible_otc_t-pot.sh @@ -109,7 +109,9 @@ if [ $? -eq 0 ]; then else - if grep 'Flavor' otc_tools.log > /dev/null; then + if grep '401 Unauthorized' otc_tools.log > /dev/null; then + echo "### API username or password is incorrect" + elif grep 'Flavor' otc_tools.log > /dev/null; then echo "### Specified ECS Flavor not found" elif grep 'No image found by name' otc_tools.log > /dev/null; then echo "### Specified Image not found"