Changeset

648:3f34b83771eb

Return an empty set intead of an error when no disco items are available for a host
author Waqas Hussain <waqas20@gmail.com>
date Fri, 26 Dec 2008 21:46:05 +0500
parents 647:02f4ec1115cd
children 649:5f8382768530
files core/discomanager.lua
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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"