bundles/icinga2: simplify template
Some checks failed
kunsi/bundlewrap/pipeline/head There was a failure building this commit

This commit is contained in:
Franzi 2022-02-19 09:23:00 +01:00
parent 75e1ab0db4
commit 7e58e9c667
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -47,7 +47,7 @@ object Service "${service}" {
% endif % endif
% endfor % endfor
vars.bundle = "${bundle}" 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()} vars.notification.mail = ${str(config.get('vars.notification.mail', False)).lower()}
} }
% endfor % endfor