{% extends "response.xml" %}
{% block response_content %}
    <imagesSet>
        {% for image in response.template %}
        <item>
            <imageId>
                {{ image.id }}
            </imageId>
            <name>{{ image.name }}</name>
            <imageState>{{ image.state }}</imageState>
            <hypervisor>{{ image.hypervisor }}</hypervisor>
            <description>{{ image.displaytext }}</description>
        </item>
        {% endfor %}
    </imagesSet>
{% endblock %}
{% extends "response.xml" %}
{% block response_content %}
    <imagesSet>
        {% for image in response.template %}
        <item>
            <imageId>
                {{ image.id }}
            </imageId>
            <name>{{ image.name }}</name>
            {% if image.isready == 'true' %}
            <imageState>available</imageState>
            {% elif image.isready == 'false' %}
            <imageState>unavailable</imageState>
            {% endif %}
            <hypervisor>{{ image.hypervisor }}</hypervisor>
            <description>{{ image.displaytext }}</description>
        </item>
        {% endfor %}
    </imagesSet>
{% endblock %}

Fix state on image outputs
Fix state on image outputs