From a9f2e76201fef0b455df7c67adbd30d307e459c2 Mon Sep 17 00:00:00 2001 From: ncapeyron Date: Tue, 13 Oct 2015 22:25:41 +0200 Subject: [PATCH] avoid obligation to declare "extra" in munin_hosts avoid obligation to declare "extra" param in munin_hosts list allow this simple syntax : munin_hosts: - { name: "localhost", address: "127.0.0.1" } --- templates/hosts.conf.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/hosts.conf.j2 b/templates/hosts.conf.j2 index abb4e8a..fc6e1eb 100644 --- a/templates/hosts.conf.j2 +++ b/templates/hosts.conf.j2 @@ -2,10 +2,10 @@ {% for host in munin_hosts %} [{{ host.name }}] address {{ host.address }} -{% if host.extra %} +{% if host.extra is defined %} {% for extra in host.extra %} {{ extra }} {% endfor %} {% endif %} -{% endfor %} \ No newline at end of file +{% endfor %}