From 225f2e2b33b74fd5ddf8cf0d11820f7acd769bee Mon Sep 17 00:00:00 2001 From: Tim Buckley Date: Wed, 15 Jul 2015 16:40:54 -0600 Subject: [PATCH] fix tree parser creating empty root node --- stackviz/parser/tempest_subunit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stackviz/parser/tempest_subunit.py b/stackviz/parser/tempest_subunit.py index 1de5861..e0a0d49 100644 --- a/stackviz/parser/tempest_subunit.py +++ b/stackviz/parser/tempest_subunit.py @@ -153,6 +153,8 @@ def _descend(root, path): path_parts = path.split('.') path_parts.reverse() + root['name'] = path_parts.pop() + return _descend_recurse(root, path_parts)