From fe93f28b16c039683dff61983cbe229ba6107d8a Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 25 Nov 2021 17:07:13 +0100 Subject: mod_admin_shell: Fix showing default HTTP path in module:info Thanks mod_http_openmetrics --- plugins/mod_admin_shell.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 9b7386b8..555f6715 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -443,7 +443,7 @@ function def_env.module:info(name, hosts) ["adhoc-provider"] = item_name, ["auth-provider"] = item_name, ["storage-provider"] = item_name, - ["http-provider"] = function(item, mod) return mod:http_url(item.name); end, + ["http-provider"] = function(item, mod) return mod:http_url(item.name, item.default_path); end, ["net-provider"] = item_name, ["measure"] = function(item) return item.name .. " (" .. suf(item.conf and item.conf.unit, " ") .. item.type .. ")"; end, ["metric"] = function(item) -- cgit v1.2.3