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,10 +2,10 @@
{% for host in munin_hosts %} {% for host in munin_hosts %}
[{{ host.name }}] [{{ host.name }}]
address {{ host.address }} address {{ host.address }}
{% if host.extra %} {% if host.extra is defined %}
{% for extra in host.extra %} {% for extra in host.extra %}
{{ extra }} {{ extra }}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}