From 1a8ead7f684c8495f0895788feb8a352c90daa5e Mon Sep 17 00:00:00 2001 From: Denis Zheleztsov Date: Sat, 25 Feb 2017 16:00:43 +0300 Subject: [PATCH] Fix path --- rest/zoo.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rest/zoo.go b/rest/zoo.go index 473dd30..fb8bd22 100644 --- a/rest/zoo.go +++ b/rest/zoo.go @@ -57,7 +57,7 @@ func (z ZooNode) GetChildrens(path string) Ls { l.Error = "" l.Childrens = childrens - l.Path = lsPath + l.Path = path l.ZkStat = zkStat return l @@ -89,7 +89,7 @@ func (z ZooNode) GetNode(path string) Get { g.Error = "" g.Data = data - g.Path = getPath + g.Path = path g.ZkStat = zkStat return g @@ -149,7 +149,7 @@ func (z ZooNode) UpdateNode(path string, content []byte) string { return err.Error() } - return upPath + return path } //EnsureZooPath create zookeeper path @@ -173,5 +173,5 @@ func (z ZooNode) EnsureZooPath(path string) (string, error) { } } - return fullnodepath, nil + return path, nil }