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

Unified Diff: environs/config/home.go

Issue 8839047: environs: fix WriteCertAndKeyToHome
Patch Set: environs: fix WriteCertAndKeyToHome Created 10 years, 11 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 | « environs/cert_test.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: environs/config/home.go
=== modified file 'environs/config/home.go'
--- environs/config/home.go 2013-04-01 18:33:38 +0000
+++ environs/config/home.go 2013-04-23 16:04:45 +0000
@@ -27,6 +27,8 @@
// JujuHome returns the current juju home.
func JujuHome() string {
+ jujuHomeMu.Lock()
+ defer jujuHomeMu.Unlock()
if jujuHome == "" {
panic("juju home hasn't been initialized")
}
« no previous file with comments | « environs/cert_test.go ('k') | no next file » | no next file with comments »

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