Skip to content
Permalink
Browse files
removed second reading of 'authorizationParam'
  • Loading branch information
jcabrerizo committed May 31, 2019
1 parent 9d4ce9a commit 23c010e63e0e1cff3e2053cb49b57a92a2cf6f76
Showing 1 changed file with 1 addition and 1 deletion.
@@ -150,7 +150,7 @@ func (cmd *Login) Run(scope scope.Scope, c *cli.Context) {
cmd.network.BrooklynUrl = cmd.network.BrooklynUrl[0 : len(cmd.network.BrooklynUrl)-1]
}

if cmd.network.BrooklynUrl != "" && cmd.brooklynUser == "" && c.String(authorizationParam) == "" {
if cmd.network.BrooklynUrl != "" && cmd.brooklynUser == "" && authParamValue == "" {
// if only target supplied at command line see if it already exists in the config file
if credentials, err := config.GetNetworkCredentialsForTarget(cmd.network.BrooklynUrl); err == nil {
cmd.network.Credentials = credentials

0 comments on commit 23c010e

Please sign in to comment.