{% for vm in vms %}
{% if 'rhel' in vm[3].lower()%}
{% set logo = 'Redhat.png' %}
{% elif 'cfme' in vm[3].lower() %}
{% set logo = 'Centos.png' %}
{% elif 'centos' in vm[3].lower() %}
{% set logo = 'Centos.png' %}
{% elif 'fedora' in vm[3].lower() %}
{% set logo = 'Fedora.png' %}
{% elif vm[3].startswith('debian') %}
{% set logo = 'Debian.png' %}
{% elif vm[3].startswith('utopic') %}
{% set logo = 'Ubuntu.png' %}
{% elif vm[3].startswith('vivid') %}
{% set logo = 'Ubuntu.png' %}
{% elif vm[3].startswith('wily') %}
{% set logo = 'Ubuntu.png' %}
{% elif vm[3].startswith('xenial') %}
{% set logo = 'Ubuntu.png' %}
{% elif vm[3].startswith('yakkety') %}
{% set logo = 'Ubuntu.png' %}
{% elif vm[3].startswith('zesty') %}
{% set logo = 'Ubuntu.png' %}
{% elif vm[3].startswith('artful') %}
{% 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' %}
{% endif %}