~themue/juju-core/050-prepare-openstack

« back to all changes in this revision

Viewing changes to state/environ.go

  • Committer: Dimiter Naydenov
  • Date: 2013-07-29 15:15:41 UTC
  • mto: This revision was merged to the branch mainline in revision 1565.
  • Revision ID: dimiter.naydenov@canonical.com-20130729151541-zm8murwo9u7mtsdu
names: new package

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
        "labix.org/v2/mgo/txn"
9
9
 
10
10
        "launchpad.net/juju-core/errors"
 
11
        "launchpad.net/juju-core/names"
11
12
)
12
13
 
13
14
// environGlobalKey is the key for the environment, its
52
53
// The returned name will be different from other Tag values returned
53
54
// by any other entities from the same state.
54
55
func (e Environment) Tag() string {
55
 
        return "environment-" + e.doc.Name
 
56
        return names.EnvironTag(e.doc.Name)
56
57
}
57
58
 
58
59
// UUID returns the universally unique identifier of the environment.