Skip to content

Commit

Permalink
fix cert to make it work with -o text
Browse files Browse the repository at this point in the history
  • Loading branch information
loosla committed Sep 11, 2024
1 parent 57cdcb5 commit c9657fc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions commands/displayers/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ limitations under the License.
package displayers

import (
"encoding/base64"
"io"
"sort"
"strconv"
Expand Down Expand Up @@ -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),
},
}
}
Expand Down

0 comments on commit c9657fc

Please sign in to comment.