lib/rbovirt.rb in rbovirt-0.0.21 vs lib/rbovirt.rb in rbovirt-0.0.22

- old
+ new

@@ -7,10 +7,11 @@ require "ovirt/vm" require "ovirt/volume" require "ovirt/interface" require "ovirt/network" require "ovirt/quota" +require "ovirt/version" require "client/vm_api" require "client/template_api" require "client/cluster_api" require "client/host_api" @@ -131,13 +132,13 @@ def has_datacenter?(vm) (vm/'data_center').any? end def http_headers(headers ={}) - headers.merge({ + filter_header.merge(auth_header).merge({ :content_type => 'application/xml', :accept => 'application/xml', - }).merge(auth_header).merge(filter_header) + }).merge(headers) end def handle_fault(f) if f.is_a?(RestClient::BadRequest) fault = (Nokogiri::XML(f.http_body)/'//fault/detail')