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

Unified Diff: environs/ec2/ec2.go

Issue 10492043: environs/*: access environ name safely
Patch Set: environs/*: access environ name safely Created 11 years, 9 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') | environs/maas/environ.go » ('j') | 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 2013-06-19 00:15:01 +0000
+++ environs/ec2/ec2.go 2013-06-24 10:55:04 +0000
@@ -147,6 +147,7 @@
if err != nil {
return nil, err
}
+ e.name = cfg.Name()
return e, nil
}
@@ -185,7 +186,6 @@
}
e.ecfgMutex.Lock()
defer e.ecfgMutex.Unlock()
- e.name = ecfg.Name()
e.ecfgUnlocked = ecfg
auth := aws.Auth{ecfg.accessKey(), ecfg.secretKey()}
« no previous file with comments | « [revision details] ('k') | environs/maas/environ.go » ('j') | no next file with comments »

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