[Swift-commit] r4934 - SwiftApps/GOSwift/pykoa/tools

jonmon at ci.uchicago.edu jonmon at ci.uchicago.edu
Tue Aug 2 19:17:45 CDT 2011


Author: jonmon
Date: 2011-08-02 19:17:44 -0500 (Tue, 02 Aug 2011)
New Revision: 4934

Modified:
   SwiftApps/GOSwift/pykoa/tools/koa_goswift_run.py
Log:
o minor change to how the script determines the public ip address for the VM.


Modified: SwiftApps/GOSwift/pykoa/tools/koa_goswift_run.py
===================================================================
--- SwiftApps/GOSwift/pykoa/tools/koa_goswift_run.py	2011-08-02 22:02:57 UTC (rev 4933)
+++ SwiftApps/GOSwift/pykoa/tools/koa_goswift_run.py	2011-08-03 00:17:44 UTC (rev 4934)
@@ -222,7 +222,7 @@
         os.environ["X509_USER_PROXY"] = proxyfile
 
     # Not sure this will work all the time, but this is what the internet said i could do.
-    cmd = "curl http://169.254.169.254/2009-04-04/meta-data/public-ipv4"
+    cmd = "curl http://169.254.169.254/latest/meta-data/public-ipv4"
     (status, host ) = commands.getstatusoutput( cmd )
     if status != 0:
         sys.stderr.write( "Could not determine hostname\n" )




More information about the Swift-commit mailing list