This should also apply if host.vars.notification.mail is not defined, but service.vars.notification.mail is

This commit is contained in:
Jan Wagner 2019-09-12 17:20:15 +02:00
parent c1aaa10650
commit 7a49ed4c81
1 changed files with 1 additions and 1 deletions

View 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 )
}
```