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"
)
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