From a5f0b912a1205644ef48733110b5d966db8424da Mon Sep 17 00:00:00 2001 From: Sebastian Haderecker Date: Tue, 16 Apr 2019 09:01:17 +0000 Subject: [PATCH] Minor formatting --- cloud/deploy_ansible_otc_t-pot.sh | 36 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/cloud/deploy_ansible_otc_t-pot.sh b/cloud/deploy_ansible_otc_t-pot.sh index 16f062d5..dcbf7e71 100755 --- a/cloud/deploy_ansible_otc_t-pot.sh +++ b/cloud/deploy_ansible_otc_t-pot.sh @@ -109,24 +109,24 @@ if [ $? -eq 0 ]; then else -if 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" -elif grep 'No subnet found by name' otc_tools.log > /dev/null; then - echo "### Specified Subnet not found" -elif grep 'No VPC found by name' otc_tools.log > /dev/null; then - echo "### Specified VPC not found" -elif grep 'No security-group found by name' otc_tools.log > /dev/null; then - echo "### Specified Security Group not found" -elif grep 'Invalid key_name provided' otc_tools.log > /dev/null; then - echo "### Specified Key Pair not found" -elif grep 'availability_zone' otc_tools.log > /dev/null; then - echo "### Specified Availability Zone not found" -elif grep 'quota' otc_tools.log > /dev/null; then - echo "### Quota exceeded. Please check your available quotas online" - echo "### You can either delete unused resources or apply for a higher quota" -fi + if 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" + elif grep 'No subnet found by name' otc_tools.log > /dev/null; then + echo "### Specified Subnet not found" + elif grep 'No VPC found by name' otc_tools.log > /dev/null; then + echo "### Specified VPC not found" + elif grep 'No security-group found by name' otc_tools.log > /dev/null; then + echo "### Specified Security Group not found" + elif grep 'Invalid key_name provided' otc_tools.log > /dev/null; then + echo "### Specified Key Pair not found" + elif grep 'availability_zone' otc_tools.log > /dev/null; then + echo "### Specified Availability Zone not found" + elif grep 'quota' otc_tools.log > /dev/null; then + echo "### Quota exceeded. Please check your available quotas online" + echo "### You can either delete unused resources or apply for a higher quota" + fi echo "### ECS creation unsuccessful. Aborting..."