You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by sj...@apache.org on 2017/07/17 12:06:12 UTC

[05/18] brooklyn-client git commit: Don't trim password.

Don't trim password.


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-client/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-client/commit/749057bb
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-client/tree/749057bb
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-client/diff/749057bb

Branch: refs/heads/master
Commit: 749057bb61a6bb409a7f81cd584a17a1d831d2cb
Parents: 4d6b4fd
Author: Geoff Macartney <ge...@cloudsoftcorp.com>
Authored: Tue Apr 4 15:26:31 2017 +0100
Committer: Geoff Macartney <ge...@cloudsoftcorp.com>
Committed: Tue Jul 4 11:06:00 2017 +0100

----------------------------------------------------------------------
 cli/commands/login.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-client/blob/749057bb/cli/commands/login.go
----------------------------------------------------------------------
diff --git a/cli/commands/login.go b/cli/commands/login.go
index b264fb0..b2ab208 100644
--- a/cli/commands/login.go
+++ b/cli/commands/login.go
@@ -100,8 +100,7 @@ func (cmd *Login) Run(scope scope.Scope, c *cli.Context) {
 			error_handler.ErrorExit(err)
 		}
 		fmt.Printf("\n")
-		password := string(bytePassword)
-		cmd.network.BrooklynPass = strings.TrimSpace(password)
+		cmd.network.BrooklynPass = string(bytePassword)
 	}
 
 	if cmd.config.Map == nil {