def terminate_instances(self):
    instance_ids = instance_ids_from_querystring(self.querystring)
    if self.is_not_dryrun('TerminateInstance'):
        instances = self.ec2_backend.terminate_instances(instance_ids)
        template = self.response_template(EC2_TERMINATE_INSTANCES)
        return template.render(instances=instances)
def terminate_instances(self):
    instance_ids = instance_ids_from_querystring(self.querystring)
    if self.is_not_dryrun('TerminateInstance'):
        instances = self.ec2_backend.terminate_instances(instance_ids)
        template = self.response_template(EC2_TERMINATE_INSTANCES)
        return template.render(instances=instances)