From 7e58e9c667752e5467f30d94559e9d978d6fbf27 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 19 Feb 2022 09:23:00 +0100 Subject: [PATCH] bundles/icinga2: simplify template --- bundles/icinga2/files/icinga2/hosts_template.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/icinga2/files/icinga2/hosts_template.conf b/bundles/icinga2/files/icinga2/hosts_template.conf index 794d430..645fa27 100644 --- a/bundles/icinga2/files/icinga2/hosts_template.conf +++ b/bundles/icinga2/files/icinga2/hosts_template.conf @@ -47,7 +47,7 @@ object Service "${service}" { % endif % endfor vars.bundle = "${bundle}" - vars.notification.sms = ${str((config.get('vars.notification.sms', False) and rnode.metadata.get('icinga_options/vars.notification.sms', True))).lower()} + vars.notification.sms = ${str(config.get('vars.notification.sms', False)).lower()} vars.notification.mail = ${str(config.get('vars.notification.mail', False)).lower()} } % endfor