Merge pull request #71 from philips/pretty-print-conf

chore(etcd): pretty print the conf json
release-0.4
Xiang Li 2013-08-08 14:08:28 -07:00
commit b36feec757
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)