Comparison

plugins/mod_admin_shell.lua @ 11930:ec46f110ce1d

mod_admin_shell: List net providers in module:info
author Kim Alvefur <zash@zash.se>
date Tue, 23 Nov 2021 17:59:40 +0100
parent 11917:d27b74b25105
child 11931:c65d5da8e99a
comparison
equal deleted inserted replaced
11929:85d51bfcf56b 11930:ec46f110ce1d
428 ["identity"] = function(ident) return ident.type .. "/" .. ident.category; end, 428 ["identity"] = function(ident) return ident.type .. "/" .. ident.category; end,
429 ["adhoc-provider"] = function(item) return item.name; end, 429 ["adhoc-provider"] = function(item) return item.name; end,
430 ["auth-provider"] = function(item) return item.name; end, 430 ["auth-provider"] = function(item) return item.name; end,
431 ["storage-provider"] = function(item) return item.name; end, 431 ["storage-provider"] = function(item) return item.name; end,
432 ["http-provider"] = function(item, mod) return mod:http_url(item.name); end, 432 ["http-provider"] = function(item, mod) return mod:http_url(item.name); end,
433 ["net-provider"] = function(item) return item.name; end,
433 }; 434 };
434 435
435 for host in hosts do 436 for host in hosts do
436 local mod = modulemanager.get_module(host, name); 437 local mod = modulemanager.get_module(host, name);
437 if mod.module.host == "*" then 438 if mod.module.host == "*" then