From f84d53c0768acce612dd6d01cba4e29e5cbf71c1 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 27 Apr 2018 12:17:59 +0200 Subject: [PATCH] Fix: Don't write empty checks Signed-off-by: Knut Ahlers --- templates/checks.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/checks.yml b/templates/checks.yml index 375be31..ecca824 100644 --- a/templates/checks.yml +++ b/templates/checks.yml @@ -1,10 +1,14 @@ --- # {{ ansible_managed }} +{% if instance_status_global_checks | length > 0 %} # Global checks {{ instance_status_global_checks | to_nice_yaml }} +{% endif %} +{% if instance_status_checks | length > 0 %} # Instance checks {{ instance_status_checks | to_nice_yaml }} +{% endif %} ...