chore(etcd): pretty print the conf json

someone might edit this so pretty print it.
release-0.4
Brandon Philips 2013-08-08 13:59:45 -07:00
parent 9d488f5529
commit 5000e1de4a
1 changed files with 1 additions and 1 deletions

View File

@ -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)