Merge pull request #16177 from HuKeping/leading-tab

Use TrimSpace to instead of Trim
This commit is contained in:
Antonio Murdaca 2015-09-09 14:12:36 +02:00
commit 104d30f946
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ func (cli *DockerCli) CmdLogin(args ...string) error {
if username == "" {
promptDefault("Username", authconfig.Username)
username = readInput(cli.in, cli.out)
username = strings.Trim(username, " ")
username = strings.TrimSpace(username)
if username == "" {
username = authconfig.Username
}