From cc50d6673f2d98f00f564c2644474be20aa26b34 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 26 Dec 2008 21:46:05 +0500 Subject: [PATCH] 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" -- 2.30.2