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"
  }
master
ncapeyron 2015-10-13 22:25:41 +02:00
parent 6ba30a9f6c
commit a9f2e76201
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
{% 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 %}