Fixed message for successful auth describe run (#1336)

## Changes
Fixed message for successful auth describe run
This commit is contained in:
Andrew Nester 2024-04-03 17:47:45 +02:00 committed by GitHub
parent 04cbc7171e
commit 5a7405e606
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 6 deletions

View File

@ -12,14 +12,14 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )
var authTemplate = `{{"Host:" | bold}} {{.Details.Host}} var authTemplate = `{{"Host:" | bold}} {{.Status.Details.Host}}
{{- if .AccountID}} {{- if .Status.AccountID}}
{{"Account ID:" | bold}} {{.AccountID}} {{"Account ID:" | bold}} {{.Status.AccountID}}
{{- end}} {{- end}}
{{- if .Username}} {{- if .Status.Username}}
{{"User:" | bold}} {{.Username}} {{"User:" | bold}} {{.Status.Username}}
{{- end}} {{- end}}
{{"Authenticated with:" | bold}} {{.Details.AuthType}} {{"Authenticated with:" | bold}} {{.Status.Details.AuthType}}
----- -----
` + configurationTemplate ` + configurationTemplate