Skip to content

Commit

Permalink
Merge pull request docker#133 from abronan/fix_zk_wrong_list_error
Browse files Browse the repository at this point in the history
zk: fix wrong error code check on List
  • Loading branch information
abronan authored Jul 20, 2016
2 parents 35d3e20 + aec96b8 commit aabc039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/zookeeper/zookeeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (s *Zookeeper) List(directory string) ([]*store.KVPair, error) {
pair, err := s.Get(strings.TrimSuffix(directory, "/") + s.normalize(key))
if err != nil {
// If node is not found: List is out of date, retry
if err == zk.ErrNoNode {
if err == store.ErrKeyNotFound {
return s.List(directory)
}
return nil, err
Expand Down

0 comments on commit aabc039

Please # to comment.