aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-11-25 17:07:13 +0100
committerKim Alvefur <zash@zash.se>2021-11-25 17:07:13 +0100
commitfe93f28b16c039683dff61983cbe229ba6107d8a (patch)
treef408a94b9665ebe0e0055b89a696d217dec3c8da /plugins
parent17aad028b3abca9d8ba6e067dce2b9bbf29136fd (diff)
downloadprosody-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')
-rw-r--r--plugins/mod_admin_shell.lua2
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)