ec2stack/templates/instance_attribute.xml (19 lines of code) (raw):

{% extends "response.xml" %} {% block response_content %} <instanceId> {{ id }} </instanceId> <{{ attribute }}> {% if attribute == 'groupSet' %} {% for securitygroup in response %} <item> <groupId>{{ securitygroup.id }}</groupId> </item> {% endfor %} {% else %} <value> {{ response }} </value> {% endif %} </{{ attribute }}> {% endblock %}