Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(855)

Unified Diff: state/user.go

Issue 52050043: juju: cache API endpoints and credentials (Closed)
Patch Set: juju: cache API endpoints and credentials Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « names/user_test.go ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: state/user.go
=== modified file 'state/user.go'
--- state/user.go 2013-12-12 15:22:21 +0000
+++ state/user.go 2014-01-14 13:29:26 +0000
@@ -11,6 +11,7 @@
"labix.org/v2/mgo/txn"
"launchpad.net/juju-core/errors"
+ "launchpad.net/juju-core/names"
"launchpad.net/juju-core/utils"
)
@@ -97,7 +98,7 @@
// Tag returns the Tag for
// the user ("user-$username")
func (u *User) Tag() string {
- return "user-" + u.doc.Name
+ return names.UserTag(u.doc.Name)
}
// SetPassword sets the password associated with the user.
« no previous file with comments | « names/user_test.go ('k') | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b