fix tree parser creating empty root node

This commit is contained in:
Tim Buckley
2015-07-15 16:40:54 -06:00
parent e3f652c0dd
commit 225f2e2b33

View File

@@ -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)