bundles/icinga2: only add user to on-call group if they have atleast one of (email, phone) set
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
8c6c691e5e
commit
54219928e4
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ object User "${username}" {
|
||||||
states = [ OK, Warning, Critical, Up, Down ]
|
states = [ OK, Warning, Critical, Up, Down ]
|
||||||
types = [ Problem, Recovery ]
|
types = [ Problem, Recovery ]
|
||||||
|
|
||||||
% if config['is_admin']:
|
% if config['is_admin'] and (config['email'] or config['phone']):
|
||||||
groups = [ "on-call_sms" ]
|
groups = [ "on-call_sms" ]
|
||||||
% endif
|
% endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue