# HG changeset patch # User Kim Alvefur # Date 1634150764 -7200 # Node ID bfa85965106e7cb78baabe26a31baadfb93d86cc # Parent 7440d610e5f1cf74d8df49f6b5dc081ab45bbcfc mod_admin_shell: Show HTTP base-URLs in module:info() Because it's nice, not having to find it in http:list(), which could have a lot of items. diff -r 7440d610e5f1 -r bfa85965106e plugins/mod_admin_shell.lua --- a/plugins/mod_admin_shell.lua Wed Oct 13 10:04:11 2021 +0100 +++ b/plugins/mod_admin_shell.lua Wed Oct 13 20:46:04 2021 +0200 @@ -420,6 +420,7 @@ ["adhoc-provider"] = function(item) return item.name; end, ["auth-provider"] = function(item) return item.name; end, ["storage-provider"] = function(item) return item.name; end, + ["http-provider"] = function(item, mod) return mod:http_url(item.name); end, }; for host in hosts do @@ -441,7 +442,7 @@ local formatter = item_formatters[kind]; if formatter then for _, item in ipairs(items) do - print(" - " .. formatter(item)); + print(" - " .. formatter(item, mod.module)); end end end