def describe_instances(self):
    filter_dict = filters_from_querystring(self.querystring)
    instance_ids = instance_ids_from_querystring(self.querystring)
    if instance_ids:
        reservations = self.ec2_backend.get_reservations_by_instance_ids(instance_ids, filters=filter_dict)
    else:
        reservations = self.ec2_backend.all_reservations(make_copy=True, filters=filter_dict)
    template = self.response_template(EC2_DESCRIBE_INSTANCES)
    return template.render(reservations=reservations)
def describe_instances(self):
    filter_dict = filters_from_querystring(self.querystring)
    instance_ids = instance_ids_from_querystring(self.querystring)
    if instance_ids:
        reservations = self.ec2_backend.get_reservations_by_instance_ids(instance_ids, filters=filter_dict)
    else:
        reservations = self.ec2_backend.all_reservations(make_copy=True, filters=filter_dict)
    template = self.response_template(EC2_DESCRIBE_INSTANCES)
    return template.render(reservations=reservations)