From 7d0a2037b30eea26ac86eff30494246ad6d6edff Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 26 Dec 2008 21:46:05 +0500 Subject: Return an empty set intead of an error when no disco items are available for a host --- core/discomanager.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/discomanager.lua b/core/discomanager.lua index 21080635..fe63f972 100644 --- a/core/discomanager.lua +++ b/core/discomanager.lua @@ -41,6 +41,11 @@ do return true; end end); + helper:addDiscoItemsHandler("*host", function(reply, to, from, node) + if hosts[to] and hosts[to].type == "local" then + return true; + end + end); end module "discomanager" -- cgit v1.2.3