[Swift-commit] r7728 - SwiftApps/cloud

ketan at ci.uchicago.edu ketan at ci.uchicago.edu
Wed Mar 19 11:11:07 CDT 2014


Author: ketan
Date: 2014-03-19 11:11:06 -0500 (Wed, 19 Mar 2014)
New Revision: 7728

Modified:
   SwiftApps/cloud/addnodes
Log:
consistent commandline to get ec2 ip

Modified: SwiftApps/cloud/addnodes
===================================================================
--- SwiftApps/cloud/addnodes	2014-03-19 15:54:57 UTC (rev 7727)
+++ SwiftApps/cloud/addnodes	2014-03-19 16:11:06 UTC (rev 7728)
@@ -66,7 +66,8 @@
     echo "Waiting for $1 instance(s) to start"
     sleep 60
     for i in $(echo $runinst | grep -o '\bi-........\b'); do
-        ip=$(ec2din $i | grep 'running' | awk '{print $15}')
+        #ip=$(ec2din $i | grep 'running' | awk '{print $15}')
+        ip=$(ec2din --show-empty-fields | grep running | awk '{print $17}')
         start_worker_ssh $ip 
     done
 }




More information about the Swift-commit mailing list