From 4e2a6a46f24c474772fbf39656ccccc733d1f58c Mon Sep 17 00:00:00 2001 From: david hill Date: Thu, 28 Apr 2016 16:31:06 -0500 Subject: [PATCH] fix elastic commands --- oam/cloud/IDBInstanceCmds.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) mode change 100644 => 100755 oam/cloud/IDBInstanceCmds.sh diff --git a/oam/cloud/IDBInstanceCmds.sh b/oam/cloud/IDBInstanceCmds.sh old mode 100644 new mode 100755 index 0084e2256..9181e5201 --- a/oam/cloud/IDBInstanceCmds.sh +++ b/oam/cloud/IDBInstanceCmds.sh @@ -196,11 +196,11 @@ getZone() { zone=`cat $describeInstanceFile | grep -m 1 $instance | awk '{gsub(/^[ \t]+|[ \t]+$/,"");print $11}'` else - zone=`cat $describeInstanceFile | grep -m 1 $instance | awk '{gsub(/^[ \t]+|[ \t]+$/,"");print $11}'` + zone=`cat $describeInstanceFile | grep -m 1 $instance | awk '{gsub(/^[ \t]+|[ \t]+$/,"");print $10}'` if [ "$zone" == "" ]; then describeInstance fi - zone=`cat $describeInstanceFile | grep -m 1 $instance | awk '{gsub(/^[ \t]+|[ \t]+$/,"");print $11}'` + zone=`cat $describeInstanceFile | grep -m 1 $instance | awk '{gsub(/^[ \t]+|[ \t]+$/,"");print $10}'` fi $prefix/Calpont/bin/setConfig Installation AmazonZone $zone fi @@ -494,7 +494,6 @@ getSubnet() { echo $subnet else echo "failed" - fi return }