Comparison

plugins/mod_admin_shell.lua @ 11602:78ec0741c2bc

mod_admin_shell: module:info: Show module status
author Kim Alvefur <zash@zash.se>
date Sat, 12 Jun 2021 16:40:22 +0200
parent 11601:9483728f890f
child 11603:4e24408a3f57
comparison
equal deleted inserted replaced
11601:9483728f890f 11602:78ec0741c2bc
415 component_type = "external"; 415 component_type = "external";
416 end 416 end
417 print("on " .. component_type .. " Component " .. mod.module.host); 417 print("on " .. component_type .. " Component " .. mod.module.host);
418 end 418 end
419 print(" path: " .. (mod.module.path or "n/a")); 419 print(" path: " .. (mod.module.path or "n/a"));
420 if mod.module.status_message then
421 print(" status: [" .. mod.module.status_type .. "] " .. mod.module.status_message);
422 end
420 end 423 end
421 return true; 424 return true;
422 end 425 end
423 426
424 function def_env.module:load(name, hosts, config) 427 function def_env.module:load(name, hosts, config)