Joe Talerico 069d37eee1 Updating Checks and output
Change-Id: I203944c1f172d5ee395e13ea11945a342628baac
2015-12-21 12:46:02 +01:00

29 lines
832 B
Django/Jinja

# Browbeat generated bug report
{% for host in groups['controller'] %}
---------------------------------------
| Issues for host : {{ host }}
---------------------------------------
{% for check in hostvars[host]['checks'] %}
{% if hostvars[host][check]['failed'] == true %}
Bug: {{ check }}
Name: {{ hostvars[host]['checks'][check]['name'] }}
URL: {{ hostvars[host]['checks'][check]['url'] }}
{% endif %}
{% endfor %}
{% endfor %}
{% for host in groups['compute'] %}
---------------------------------------
| Issues for host : {{ host }}
---------------------------------------
{% for check in hostvars[host]['checks'] %}
{% if hostvars[host][check]['failed'] == true %}
Bug: {{ check }}
Name: {{ hostvars[host]['checks'][check]['name'] }}
URL: {{ hostvars[host]['checks'][check]['url'] }}
{% endif %}
{% endfor %}
{% endfor %}