<?xml version="1.0"?>
<DescribeVolumesResponse xmlns="http://ec2.amazonaws.com/doc/<%=erb_version%>/">
   <requestId><%= @request_id %></requestId>
   <volumeSet>
        <% impool.each do |im| %>
            <% if (state_image = im.render_state) && im.ebs_volume? %>
            <item>
               <volumeId>vol-<%= sprintf('%08i', im.id) %></volumeId>
               <size><%= im.render_size %></size>
               <snapshotId><%= im["TEMPLATE/EBS_FROM_SNAPSHOT_ID"] %></snapshotId>
               <availabilityZone/>
               <status><%= state_image %></status>
               <createTime><%= im.render_create_time %></createTime>
               <attachmentSet>
               <% im.each("TEMPLATE/EBS") do |ebs| %>
                 <item>
                    <volumeId>vol-<%= sprintf('%08i', im.id) %></volumeId>
                    <instanceId><%= ebs['INSTANCE_ID'] %></instanceId>
                    <device><%= ebs['DEVICE'] %></device>
                    <status>attached</status>
                    <attachTime><%= Time.at(ebs['ATTACH_TIME'].to_i).xmlschema %></attachTime>
                    <deleteOnTermination>false</deleteOnTermination>
                 </item>
               <% end %>
               </attachmentSet>
               <tagSet/>
            </item>
            <% else
                next
            end
        end %>
   </volumeSet>
</DescribeVolumesResponse>
