Skip to content

Commit

Permalink
Merge pull request #1 from youtome/master
Browse files Browse the repository at this point in the history
_tree:root does not works.
  • Loading branch information
filippog committed Aug 17, 2015
2 parents 9b8a5cd + 6e4d53a commit 9484b0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphite_newts/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def _run_search(self, term):

def _search_nodes(self, pattern):
parts = pattern.split('.')
queue = [('_tree:root', parts)]
queue = [('_parent:_root', parts)]

while queue:
search_term, patterns = queue.pop()
Expand All @@ -128,7 +128,7 @@ def _search_nodes(self, pattern):
# retrieved metrics (the leaves)
branches = {}
for resource, metrics in self._run_search(search_term):
if search_term == '_tree:root':
if search_term == '_parent:_root':
branch = resource
else:
# XXX column is valid in graphite names
Expand Down

0 comments on commit 9484b0a

Please sign in to comment.