lib/fog/vsphere/models/compute/cluster.rb in fog-1.8.0 vs lib/fog/vsphere/models/compute/cluster.rb in fog-1.9.0
- old
+ new
@@ -11,11 +11,11 @@
attribute :num_host
attribute :num_cpu_cores
attribute :overall_status
def resource_pools(filters = { })
- self.attributes[:resource_pools] ||= id.nil? ? [] : connection.resource_pools({
- :connection => connection,
+ self.attributes[:resource_pools] ||= id.nil? ? [] : service.resource_pools({
+ :service => service,
:cluster => name,
:datacenter => datacenter
}.merge(filters))
end