diff options
author | Kim Alvefur <zash@zash.se> | 2021-11-25 17:07:13 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-11-25 17:07:13 +0100 |
commit | fe93f28b16c039683dff61983cbe229ba6107d8a (patch) | |
tree | f408a94b9665ebe0e0055b89a696d217dec3c8da /plugins/mod_admin_shell.lua | |
parent | 17aad028b3abca9d8ba6e067dce2b9bbf29136fd (diff) | |
download | prosody-fe93f28b16c039683dff61983cbe229ba6107d8a.tar.gz prosody-fe93f28b16c039683dff61983cbe229ba6107d8a.zip |
mod_admin_shell: Fix showing default HTTP path in module:info
Thanks mod_http_openmetrics
Diffstat (limited to 'plugins/mod_admin_shell.lua')
-rw-r--r-- | plugins/mod_admin_shell.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) |