mirror of https://github.com/docker/docs.git
Merge pull request #312 from chanwit/quick-fix-zk
Cleanup: fix fatal error when registering node
This commit is contained in:
commit
cd56c0afcc
|
@ -124,7 +124,7 @@ func (s *ZkDiscoveryService) Watch(callback discovery.WatchCallback) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *ZkDiscoveryService) Register(addr string) error {
|
func (s *ZkDiscoveryService) Register(addr string) error {
|
||||||
nodePath := "/" + path.Join(s.fullpath(), addr)
|
nodePath := path.Join(s.fullpath(), addr)
|
||||||
|
|
||||||
// check existing for the parent path first
|
// check existing for the parent path first
|
||||||
exist, _, err := s.conn.Exists(s.fullpath())
|
exist, _, err := s.conn.Exists(s.fullpath())
|
||||||
|
|
Loading…
Reference in New Issue