From ba2b8d50a19abd91fa2d2d69b89c1cb1bbf519a1 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Tue, 11 Aug 2020 16:20:03 -0500 Subject: [PATCH] minor --- pkg/cmd/auth/status/status.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/auth/status/status.go b/pkg/cmd/auth/status/status.go index 322d99282..95ba2d782 100644 --- a/pkg/cmd/auth/status/status.go +++ b/pkg/cmd/auth/status/status.go @@ -170,15 +170,21 @@ func statusRun(opts *StatusOptions) error { addMsg("%s Logged in to %s as %s", utils.GreenCheck(), hostname, utils.Bold(username)) proto, _ := cfg.Get(hostname, "git_protocol") if proto != "" { - addMsg("Git operations for %s configured to use %s protocol.", hostname, utils.Bold(proto)) + addMsg("%s Git operations for %s configured to use %s protocol.", + utils.GreenCheck(), hostname, utils.Bold(proto)) } + addMsg("") } // NB we could take this opportunity to add or fix the "user" key in the hosts config. I chose // not to since I wanted this command to be read-only. } - for hostname, lines := range statusInfo { + for _, hostname := range hostnames { + lines, ok := statusInfo[hostname] + if !ok { + continue + } fmt.Fprintf(stderr, "%s\n", utils.Bold(hostname)) for _, line := range lines { fmt.Fprintf(stderr, "\t%s\n", line)