# File lib/deltacloud/drivers/rhevm/rhevm_client.rb, line 202
    def templates(opts={})
      headers = {
        :accept => "application/xml"
      }
      headers.merge!(auth_header)
      rhevm_templates = RHEVM::client(@api_entrypoint)["/templates"].get(headers)
      Client::parse_response(rhevm_templates).xpath('/templates/template').collect do |t|
        next unless current_datacenter.cluster_ids.include?((t/'cluster').first[:id])
        RHEVM::Template::new(self, t)
      end.compact
    end