Skip to content

Commit

Permalink
Fixed message for successful auth describe run (#1336)
Browse files Browse the repository at this point in the history
## Changes
Fixed message for successful auth describe run
  • Loading branch information
andrewnester authored Apr 3, 2024
1 parent 04cbc71 commit 5a7405e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/auth/describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ import (
"github.com/spf13/cobra"
)

var authTemplate = `{{"Host:" | bold}} {{.Details.Host}}
{{- if .AccountID}}
{{"Account ID:" | bold}} {{.AccountID}}
var authTemplate = `{{"Host:" | bold}} {{.Status.Details.Host}}
{{- if .Status.AccountID}}
{{"Account ID:" | bold}} {{.Status.AccountID}}
{{- end}}
{{- if .Username}}
{{"User:" | bold}} {{.Username}}
{{- if .Status.Username}}
{{"User:" | bold}} {{.Status.Username}}
{{- end}}
{{"Authenticated with:" | bold}} {{.Details.AuthType}}
{{"Authenticated with:" | bold}} {{.Status.Details.AuthType}}
-----
` + configurationTemplate

Expand Down

0 comments on commit 5a7405e

Please sign in to comment.