Explorar o código

icinga2: Assume 'active' on empty status.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm %!s(int64=4) %!d(string=hai) anos
pai
achega
bc6f73f84f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 %}