Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1760)

Unified Diff: environs/ec2/ec2.go

Issue 6498128: environs/ec2: use a later version for ec2 metadata
Patch Set: environs/ec2: use a later version for ec2 metadata Created 12 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « [revision details] ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: environs/ec2/ec2.go
=== modified file 'environs/ec2/ec2.go'
--- environs/ec2/ec2.go 2012-09-12 20:38:20 +0000
+++ environs/ec2/ec2.go 2012-09-14 10:44:24 +0000
@@ -827,7 +827,7 @@
// http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html
func fetchMetadata(name string) (value string, err error) {
for a := shortAttempt.Start(); a.Next(); {
- uri := fmt.Sprintf("%s/1.0/meta-data/%s", metadataHost, name)
+ uri := fmt.Sprintf("%s/2012-06-01/meta-data/%s", metadataHost, name)
var resp *http.Response
resp, err = http.Get(uri)
if err != nil {
« no previous file with comments | « [revision details] ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b