From 17a861da43a0c2b06271bd936d494a55226098ea Mon Sep 17 00:00:00 2001 From: rigelrozanski Date: Thu, 31 May 2018 12:29:39 -0700 Subject: [PATCH] key utils output with cdc --- client/keys/utils.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/keys/utils.go b/client/keys/utils.go index 7224294290..3d6d9807ba 100644 --- a/client/keys/utils.go +++ b/client/keys/utils.go @@ -1,7 +1,6 @@ package keys import ( - "encoding/json" "fmt" "path/filepath" @@ -77,6 +76,7 @@ func printInfo(info keys.Info) { printKeyOutput(ko) case "json": out, err := MarshalJSON(ko) + //out, err := json.MarshalIndent(kos, "", "\t") if err != nil { panic(err) } @@ -93,7 +93,8 @@ func printInfos(infos []keys.Info) { printKeyOutput(ko) } case "json": - out, err := json.MarshalIndent(kos, "", "\t") + out, err := MarshalJSON(ko) + //out, err := json.MarshalIndent(kos, "", "\t") if err != nil { panic(err) }