(self, zk_path, name_for_error)
return children
Fetch child nodes for a given Zookeeper path.
Fetch child nodes for a given Zookeeper path.
Fetch child nodes for a given Zookeeper path .
def _get_zk_path_children(self, zk_path, name_for_error):
        """Fetch child nodes for a given Zookeeper path."""
        children = []
        try:
            children = self._zk_client.get_children(zk_path)
        except NoNodeError:
            self.log.info('No zookeeper node at %s', zk_path)
        except Exception:
            self.log.exception('Could not read %s from %s', name_for_error, zk_path)
        return children
def _get_zk_path_children ( self , zk_path , name_for_error ) : children = [ ] try : children = self . _zk_client . get_children ( zk_path ) except NoNodeError : self . log . info ( 'No zookeeper node at %s' , zk_path ) except Exception : self . log . exception ( 'Could not read %s from %s' , name_for_error , zk_path ) return children