From e11c835bd3c38d8611785411abc8c3e57bad798a Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Tue, 3 Dec 2013 10:34:59 +0100 Subject: [PATCH] fix use of virtual nodetree --- src/nodetree_virtual.erl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nodetree_virtual.erl b/src/nodetree_virtual.erl index 2aa5d7405..e48ae01d0 100644 --- a/src/nodetree_virtual.erl +++ b/src/nodetree_virtual.erl @@ -119,7 +119,11 @@ get_nodes(_Host) -> []. get_parentnodes(_Host, _Node, _From) -> []. -get_parentnodes_tree(_Host, _Node, _From) -> []. +get_parentnodes_tree(_Host, _Node, _From) -> + case get_node(Host, NodeId, From) of + Node when is_record(Node, pubsub_node) -> [{0, [Node]}]; + _Error -> [] + end. get_subnodes(Host, Node, _From) -> get_subnodes(Host, Node).