Skip to content
Permalink
Browse files
Don't store all old logins in .brooklyn_cli
  • Loading branch information
geomacy committed Jul 4, 2017
1 parent 326459c commit 2ac0e7a12e004c507203430a522cfd44b4a83227
Showing 1 changed file with 2 additions and 5 deletions.
@@ -111,11 +111,8 @@ func (cmd *Login) Run(scope scope.Scope, c *cli.Context) {
cmd.config.Map = make(map[string]interface{})
}
// now persist these credentials to the yaml file
auth, ok := cmd.config.Map["auth"].(map[string]interface{})
if !ok {
auth = make(map[string]interface{})
cmd.config.Map["auth"] = auth
}
auth := make(map[string]interface{})
cmd.config.Map["auth"] = auth

auth[cmd.network.BrooklynUrl] = map[string]string{
"username": cmd.network.BrooklynUser,

0 comments on commit 2ac0e7a

Please sign in to comment.