From 5000e1de4a9fc4dc865231e3a26d414b85e4f4bd Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Thu, 8 Aug 2013 13:59:45 -0700 Subject: [PATCH] chore(etcd): pretty print the conf json someone might edit this so pretty print it. --- etcd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etcd.go b/etcd.go index e22152d40..a5fc96772 100644 --- a/etcd.go +++ b/etcd.go @@ -557,7 +557,7 @@ func getInfo(path string) *Info { info = &argInfo // Write to file. - content, _ := json.Marshal(info) + content, _ := json.MarshalIndent(info, "", " ") content = []byte(string(content) + "\n") if err := ioutil.WriteFile(infoPath, content, 0644); err != nil { fatalf("Unable to write info to file: %v", err)