diff --git a/internal/cmd/secrets-manager/user/describe/describe.go b/internal/cmd/secrets-manager/user/describe/describe.go index 2fb6de6ed..bca914815 100644 --- a/internal/cmd/secrets-manager/user/describe/describe.go +++ b/internal/cmd/secrets-manager/user/describe/describe.go @@ -108,12 +108,14 @@ func outputResult(cmd *cobra.Command, outputFormat string, user secretsmanager.U table.AddSeparator() table.AddRow("USERNAME", *user.Username) table.AddSeparator() - table.AddRow("DESCRIPTION", *user.Description) - if user.Password != nil && *user.Password != "" { + if user.Description != nil && *user.Description != "" { + table.AddRow("DESCRIPTION", *user.Description) table.AddSeparator() + } + if user.Password != nil && *user.Password != "" { table.AddRow("PASSWORD", *user.Password) + table.AddSeparator() } - table.AddSeparator() table.AddRow("WRITE ACCESS", *user.Write) err := table.Display(cmd)