From ae1af885ce7e485f7562e051e0014371d7c10629 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Tue, 25 Jun 2013 14:49:22 +0200 Subject: [PATCH] fix feature build on node disco#info --- src/mod_pubsub.erl | 4 ++-- src/mod_pubsub_odbc.erl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl index 5d354dd6f..bfb971f8c 100644 --- a/src/mod_pubsub.erl +++ b/src/mod_pubsub.erl @@ -1671,7 +1671,7 @@ node_disco_info(Host, Node, From, Identity, Features) -> % Other -> Other % end. Action = fun (#pubsub_node{type = Type, id = NodeId}) -> - I = Types = case tree_call(Host, get_subnodes, + Types = case tree_call(Host, get_subnodes, [Host, Node, From]) of [] -> [<<"leaf">>]; @@ -1687,7 +1687,7 @@ node_disco_info(Host, Node, From, Identity, Features) -> _ -> [] end end, - lists:map(fun (T) -> + I = lists:map(fun (T) -> #xmlel{name = <<"identity">>, attrs = [{<<"category">>, diff --git a/src/mod_pubsub_odbc.erl b/src/mod_pubsub_odbc.erl index 422775d14..5602b6ef9 100644 --- a/src/mod_pubsub_odbc.erl +++ b/src/mod_pubsub_odbc.erl @@ -1326,7 +1326,7 @@ node_disco_info(Host, Node, From, Identity, Features) -> % Other -> Other % end. Action = fun (#pubsub_node{type = Type, id = NodeId}) -> - I = Types = case tree_call(Host, get_subnodes, + Types = case tree_call(Host, get_subnodes, [Host, Node, From]) of [] -> [<<"leaf">>]; @@ -1342,7 +1342,7 @@ node_disco_info(Host, Node, From, Identity, Features) -> _ -> [] end end, - lists:map(fun (T) -> + I = lists:map(fun (T) -> #xmlel{name = <<"identity">>, attrs = [{<<"category">>,