From 98aa4ec604a5cfda0e3f9a91c7104857f594e741 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 12 Jun 2021 16:40:40 +0200 Subject: mod_admin_shell: module:info: List dependencies --- plugins/mod_admin_shell.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/mod_admin_shell.lua b/plugins/mod_admin_shell.lua index 054ddf0a..cc735fe9 100644 --- a/plugins/mod_admin_shell.lua +++ b/plugins/mod_admin_shell.lua @@ -420,6 +420,12 @@ function def_env.module:info(name, hosts) if mod.module.status_message then print(" status: [" .. mod.module.status_type .. "] " .. mod.module.status_message); end + if mod.module.dependencies and next(mod.module.dependencies) ~= nil then + print(" dependencies:"); + for dep in pairs(mod.module.dependencies) do + print(" - mod_" .. dep); + end + end end return true; end -- cgit v1.2.3