Correct method of incrementing variable 29/17429/1
authorblsaws <bryan.sullivan@att.com>
Fri, 22 Jul 2016 15:35:24 +0000 (08:35 -0700)
committerblsaws <bryan.sullivan@att.com>
Fri, 22 Jul 2016 15:35:24 +0000 (08:35 -0700)
JIRA: MODELS-23

Change-Id: Ic52b08bd54b028f9c375bff923d2c9474abf4bc2
Signed-off-by: blsaws <bryan.sullivan@att.com>
tests/utils/cloudify-setup.sh

index 2128c77..a5cb60d 100644 (file)
 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 }")