From 18fc86713ef365cb5d699bed2840dc7b8aef6995 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 5 Aug 2012 17:18:35 +0100 Subject: hostmanager, mod_disco: Show optional 'name' option from the config in disco#items queries (fixes use-case in #292) (thanks diSabler, mva) --- core/hostmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/hostmanager.lua b/core/hostmanager.lua index 66275d96..3c90dbb9 100644 --- a/core/hostmanager.lua +++ b/core/hostmanager.lua @@ -84,7 +84,7 @@ function activate(host, host_config) end hosts[host] = host_session; if not host:match("[@/]") then - disco_items:set(host:match("%.(.*)") or "*", host, true); + disco_items:set(host:match("%.(.*)") or "*", host, host_config.core.name or true); end for option_name in pairs(host_config.core) do if option_name:match("_ports$") or option_name:match("_interface$") then -- cgit v1.2.3