~ubuntu-branches/ubuntu/trusty/juju-core/trusty-proposed

« back to all changes in this revision

Viewing changes to src/launchpad.net/juju-core/state/user.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-01-29 11:40:20 UTC
  • mfrom: (23.1.1 trusty-proposed)
  • Revision ID: package-import@ubuntu.com-20140129114020-ejieitm8smtt5vln
Tags: 1.17.1-0ubuntu2
d/tests/local-provider: Don't fail tests if ~/.juju is present as its
created by the juju version command. 

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.