# HG changeset patch # User Waqas Hussain # Date 1230309965 -18000 # Node ID 3f34b83771ebf2e5bcc339e9c2c29afa2e087d80 # Parent 02f4ec1115cd370f328b410209e70f61fe44e12c Return an empty set intead of an error when no disco items are available for a host diff -r 02f4ec1115cd -r 3f34b83771eb core/discomanager.lua --- a/core/discomanager.lua Thu Dec 25 03:11:15 2008 +0000 +++ b/core/discomanager.lua Fri Dec 26 21:46:05 2008 +0500 @@ -41,6 +41,11 @@ 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"