{# Container list for a service on a single host #} {% macro container_row(service, container, host) %}
{% if container.State == "running" %} running {% elif container.State == "unknown" %} {% else %} {{ container.State }} {% endif %} {{ container.Name }}
{% endmacro %} {% macro host_containers(service, host, containers, show_header=False) %} {% if show_header %}
{{ host }}
{% endif %} {% for container in containers %} {{ container_row(service, container, host) }} {% endfor %} {% endmacro %}