~wallyworld/juju-core/fast-lxc-everywhere

« back to all changes in this revision

Viewing changes to state/user.go

  • Committer: Dimiter Naydenov
  • Date: 2014-01-14 13:29:26 UTC
  • mto: This revision was merged to the branch mainline in revision 2209.
  • Revision ID: dimiter.naydenov@canonical.com-20140114132926-4xbs2t6ly736uumu
Implemented API endpoint caching

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
        "labix.org/v2/mgo/txn"
12
12
 
13
13
        "launchpad.net/juju-core/errors"
 
14
        "launchpad.net/juju-core/names"
14
15
        "launchpad.net/juju-core/utils"
15
16
)
16
17
 
97
98
// Tag returns the Tag for
98
99
// the user ("user-$username")
99
100
func (u *User) Tag() string {
100
 
        return "user-" + u.doc.Name
 
101
        return names.UserTag(u.doc.Name)
101
102
}
102
103
 
103
104
// SetPassword sets the password associated with the user.