Fix: Don't write empty checks

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-04-27 12:17:59 +02:00
parent 18bfd7f81f
commit f84d53c076
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -1,10 +1,14 @@
--- ---
# {{ ansible_managed }} # {{ ansible_managed }}
{% if instance_status_global_checks | length > 0 %}
# Global checks # Global checks
{{ instance_status_global_checks | to_nice_yaml }} {{ instance_status_global_checks | to_nice_yaml }}
{% endif %}
{% if instance_status_checks | length > 0 %}
# Instance checks # Instance checks
{{ instance_status_checks | to_nice_yaml }} {{ instance_status_checks | to_nice_yaml }}
{% endif %}
... ...