mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
Print error message on wrong API credentials
This commit is contained in:
@ -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"
|
||||||
|
Reference in New Issue
Block a user