changeset 4607:c8ccaac78f64

mod_checkcerts: Notify both host-local and global admins
author Kim Alvefur <zash@zash.se>
date Wed, 30 Jun 2021 14:33:06 +0200
parents d6eb2b722b90
children 4e8fa75cc678
files mod_checkcerts/mod_checkcerts.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_checkcerts/mod_checkcerts.lua	Tue Jun 29 12:48:42 2021 +0200
+++ b/mod_checkcerts/mod_checkcerts.lua	Wed Jun 30 14:33:06 2021 +0200
@@ -77,7 +77,7 @@
 	module:log(log_warn and "warn" or "info", fmt, certfile, timediff);
 	if nag_admin then
 		local body = fmt:format("for host ".. module.host, timediff);
-		for _,admin in ipairs(module:get_option_array("admins", {})) do
+		for admin in module:get_option_inherited_set("admins", {}) do
 			module:send(st.message({ from = module.host, to = admin, type = "chat" }, body));
 		end
 	end