Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8E361200C4C for ; Tue, 4 Apr 2017 15:41:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8CD23160B90; Tue, 4 Apr 2017 13:41:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (unknown [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id CC6B1160B81 for ; Tue, 4 Apr 2017 15:41:18 +0200 (CEST) Received: (qmail 68579 invoked by uid 500); 4 Apr 2017 13:41:18 -0000 Mailing-List: contact dev-help@brooklyn.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@brooklyn.apache.org Delivered-To: mailing list dev@brooklyn.apache.org Received: (qmail 68568 invoked by uid 99); 4 Apr 2017 13:41:17 -0000 Received: from Unknown (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2017 13:41:17 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 9CE82DFE34; Tue, 4 Apr 2017 13:41:17 +0000 (UTC) From: sjcorbett To: dev@brooklyn.apache.org Reply-To: dev@brooklyn.apache.org References: In-Reply-To: Subject: [GitHub] brooklyn-client pull request #42: Improve login handling. Content-Type: text/plain Message-Id: <20170404134117.9CE82DFE34@git1-us-west.apache.org> Date: Tue, 4 Apr 2017 13:41:17 +0000 (UTC) archived-at: Tue, 04 Apr 2017 13:41:19 -0000 Github user sjcorbett commented on a diff in the pull request: https://github.com/apache/brooklyn-client/pull/42#discussion_r109663969 --- Diff: cli/commands/login.go --- @@ -84,7 +100,8 @@ func (cmd *Login) Run(scope scope.Scope, c *cli.Context) { error_handler.ErrorExit(err) } fmt.Printf("\n") - cmd.network.BrooklynPass = string(bytePassword) + password := string(bytePassword) + cmd.network.BrooklynPass = strings.TrimSpace(password) --- End diff -- Is trimming spaces the right thing to do? What if my password is " password1 "? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---