Browse Source

icinga2: Assume 'active' on empty status.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 4 years ago
parent
commit
bc6f73f84f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      icinga2/bird_ibgp_sessions_down_ok.txt.tmpl

+ 1 - 1
icinga2/bird_ibgp_sessions_down_ok.txt.tmpl

@@ -3,7 +3,7 @@
 #
 {%- set nodes = salt['pillar.get']('nodes', {}) %}
 {%- for node, node_config in nodes.items ()|sort %}
-  {%- if node_config.get ('status', '') != "active" %}
+  {%- if node_config.get ('status', 'active') != "active" %}
 {{ salt['ffho.re_replace']('[.-]', '_', node) }}
   {%- endif %}
 {%- endfor %}