environs/config: introduce config.UUID()

Introduce `config.UUID()` method to access the uuid of the environment.
    
A uuid is the canonical identifier for an environment, and superceeds the environment's name.
    
For backwards comparability, `config.UUID()` is currently permitted to return "", but once all environments are converted to have an environment uuid in place, this method will change to return a valid uuid for a valid config.

You are correct, we did.


On Fri, Jul 25, 2014 at 7:31 AM, fwereade <notifications@github.com> wrote:

> In environs/config/config.go:
>
> > @@ -460,6 +474,14 @@ func (c *Config) Name() string {
> >  	return c.mustString("name")
> >  }
> >
> > +// UUID returns the uuid for the environment.
> > +// For backwards compatability with 1.20 and earlier the value may be blank if
> > +// no uuid is present in this configuration. Once all enviroment configurations
> > +// have been upgraded, this relaxation will be dropped.
> > +func (c *Config) UUID() string {
>
> I think we agreed (string, bool)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/juju/juju/pull/378/files#r15374322>.
>