瀏覽代碼

fix(etcd): fixup TLSInfo json

the JSON wasn't getting generated properly. Fix it up.
Brandon Philips 12 年之前
父節點
當前提交
eb8f1dc6eb
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      etcd.go

+ 4 - 4
etcd.go

@@ -104,9 +104,9 @@ const (
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------
 
 
 type TLSInfo struct {
 type TLSInfo struct {
-	CertFile string `json:"serverCertFile"`
-	KeyFile  string `json:"serverKeyFile"`
-	CAFile   string `json:"serverCAFile"`
+	CertFile string `json:"CertFile"`
+	KeyFile  string `json:"KeyFile"`
+	CAFile   string `json:"CAFile"`
 }
 }
 
 
 type Info struct {
 type Info struct {
@@ -117,7 +117,7 @@ type Info struct {
 	WebURL  string `json:"webURL"`
 	WebURL  string `json:"webURL"`
 
 
 	RaftTLS TLSInfo `json:"raftTLS"`
 	RaftTLS TLSInfo `json:"raftTLS"`
-	EtcdTLS TLSInfo `json:"raftTLS"`
+	EtcdTLS TLSInfo `json:"etcdTLS"`
 }
 }
 
 
 //------------------------------------------------------------------------------
 //------------------------------------------------------------------------------