Skip to content

Commit

Permalink
Merge pull request docker-archive#312 from chanwit/quick-fix-zk
Browse files Browse the repository at this point in the history
Cleanup: fix fatal error when registering node
  • Loading branch information
vieux committed Jan 27, 2015
2 parents aad324a + f5d3efa commit cd56c0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discovery/zookeeper/zookeeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (s *ZkDiscoveryService) Watch(callback discovery.WatchCallback) {
}

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
exist, _, err := s.conn.Exists(s.fullpath())
Expand Down

0 comments on commit cd56c0a

Please sign in to comment.