~rogpeppe/juju-core/457-configstore-server-cmdline

« back to all changes in this revision

Viewing changes to environs/configstore/disk.go

  • Committer: Roger Peppe
  • Date: 2013-10-22 22:17:50 UTC
  • Revision ID: roger.peppe@canonical.com-20131022221750-v7435px1u0gfr9cr
cmd/configstore: new command
environs/configstore: use JUJU_CONFIGSTORE env var for store server address

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
// Default returns disk-based environment config storage
23
23
// rooted at JujuHome.
24
24
func Default() (Storage, error) {
 
25
        configStoreURL := os.Getenv("JUJU_CONFIGSTORE")
 
26
        if configStoreURL != "" {
 
27
                return NewNetwork(configStoreURL), nil
 
28
        }
25
29
        return NewDisk(config.JujuHome())
26
30
}
27
31