From c9657fca8f9a0e80172d1118673ca3f34e405453 Mon Sep 17 00:00:00 2001 From: Anna Lushnikova Date: Wed, 11 Sep 2024 12:31:52 -0400 Subject: [PATCH] fix cert to make it work with -o text --- commands/displayers/database.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/commands/displayers/database.go b/commands/displayers/database.go index 352d15156..61df84679 100644 --- a/commands/displayers/database.go +++ b/commands/displayers/database.go @@ -14,7 +14,6 @@ limitations under the License. package displayers import ( - "encoding/base64" "io" "sort" "strconv" @@ -179,10 +178,9 @@ func (dc *DatabaseCA) ColMap() map[string]string { } func (dc *DatabaseCA) KV() []map[string]any { - encoded := base64.StdEncoding.EncodeToString(dc.DatabaseCA.Certificate) return []map[string]any{ { - "Certificate": encoded, + "Certificate": string(dc.DatabaseCA.Certificate), }, } }