]> granicus.if.org Git - icinga2/commitdiff
This should also apply if host.vars.notification.mail is not defined, but service... 7496/head
authorJan Wagner <waja@cyconet.org>
Thu, 12 Sep 2019 15:20:15 +0000 (17:20 +0200)
committerJan Wagner <waja@cyconet.org>
Thu, 12 Sep 2019 15:20:15 +0000 (17:20 +0200)
doc/03-monitoring-basics.md

index 7dbe9ea119fdf8ac9de5a1c8d3ab7d3d309c6df7..569d0f85d60491c05b4f9b2c00c4874d14edd249 100644 (file)
@@ -1706,7 +1706,7 @@ apply Notification "mail-service-notification" to Service {
     user_groups = host.vars.notification.mail.groups
   }
 
-  assign where host.vars.notification.mail && typeof(host.vars.notification.mail) == Dictionary
+  assign where ( host.vars.notification.mail && typeof(host.vars.notification.mail) == Dictionary ) || ( service.vars.notification.mail && typeof(service.vars.notification.mail) == Dictionary )
 }
 ```