mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-05-10 18:31:56 +00:00
Print error message on wrong API credentials
This commit is contained in:
parent
28da547e75
commit
6710d6e698
1 changed files with 3 additions and 1 deletions
|
@ -109,7 +109,9 @@ if [ $? -eq 0 ]; then
|
||||||
|
|
||||||
else
|
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"
|
echo "### Specified ECS Flavor not found"
|
||||||
elif grep 'No image found by name' otc_tools.log > /dev/null; then
|
elif grep 'No image found by name' otc_tools.log > /dev/null; then
|
||||||
echo "### Specified Image not found"
|
echo "### Specified Image not found"
|
||||||
|
|
Loading…
Reference in a new issue