chore(etcd): pretty print the conf json
someone might edit this so pretty print it.release-0.4
parent
9d488f5529
commit
5000e1de4a
2
etcd.go
2
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)
|
||||
|
|
Loading…
Reference in New Issue