{% for vm in vms %}
{% if vm[3].startswith('rhel') or vm[3].startswith('cfme')%}
{% set logo = 'Redhat.png' %}
{% elif vm[3].startswith('CentOS') %}
{% set logo = 'Centos.png' %}
{% elif vm[3].startswith('fedora') %}
{% set logo = 'Fedora.png' %}
{% elif vm[3].startswith('debian') %}
{% set logo = 'Debian.png' %}
{% elif vm[3].startswith('utopic') or vm[3].startswith('vivid') or vm[3].startswith('wily') or vm[3].startswith('xenial') or vm[3].startswith('yakkety') %}
{% set logo = 'Ubuntu.png' %}
{% else %}
{% set logo = 'Tux.png' %}
{% endif %}
{% if vm[6] == 'OK' %}
{% set report = 'glyphicon glyphicon-ok-circle green' %}
{% elif vm[6] == 'Running' %}
{% set report = 'glyphicon glyphicon-minus-sign blue' %}
{#% else %}
{% set report = 'glyphicon glyphicon-question-sign' %#}
{% endif %}