# File lib/client/host_api.rb, line 8 def hosts(opts={}) search= opts[:search] || ("datacenter=%s" % current_datacenter.name) http_get("/hosts?search=%s" % CGI.escape(search)).xpath('/hosts/host').collect do |h| OVIRT::Host::new(self, h) end end