From 6e4d53a6ec6e7ec4d39e325f6902113fa03c46b4 Mon Sep 17 00:00:00 2001 From: scott Date: Fri, 14 Aug 2015 12:55:28 +0900 Subject: [PATCH] _tree:root does not works. I test using newts 1.3.0 version. _tree:root does not works. I looking for code only _parent:_root at https://github.com/OpenNMS/newts/commit/2ff69234c69c0c3e70a9736463405bc60d378e0a Can you check the code? --- graphite_newts/finder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphite_newts/finder.py b/graphite_newts/finder.py index 3cd1c71..6cf3869 100644 --- a/graphite_newts/finder.py +++ b/graphite_newts/finder.py @@ -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() @@ -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