diff options
author | blsaws <bryan.sullivan@att.com> | 2016-07-22 08:35:24 -0700 |
---|---|---|
committer | blsaws <bryan.sullivan@att.com> | 2016-07-22 08:35:24 -0700 |
commit | 03e9648aaa5cc852c0485473b5b6124c37faaf14 (patch) | |
tree | 135ccab0161133bb721ec03a2e2d0ed5c3b33a75 /tests/utils | |
parent | c8b65e134406fef23c915f3058183abba4ab9de7 (diff) |
Correct method of incrementing variable
JIRA: MODELS-23
Change-Id: Ic52b08bd54b028f9c375bff923d2c9474abf4bc2
Signed-off-by: blsaws <bryan.sullivan@att.com>
Diffstat (limited to 'tests/utils')
-rw-r--r-- | tests/utils/cloudify-setup.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/utils/cloudify-setup.sh b/tests/utils/cloudify-setup.sh index 2128c77..a5cb60d 100644 --- a/tests/utils/cloudify-setup.sh +++ b/tests/utils/cloudify-setup.sh @@ -28,10 +28,10 @@ function get_external_net () { LINE=4 ID=$(openstack network list | awk "NR==$LINE{print \$2}") - while [[ $ID ]] + while [[ $ID ]] do if [[ $(openstack network show $ID | awk "/ router:external / { print \$4 }") == "True" ]]; then break; fi - let ID=$ID+1 + ((ID+=1)) done if [[ $ID ]]; then EXTERNAL_NETWORK_NAME=$(openstack network show $ID | awk "/ name / { print \$4 }") |