lib/fog/linode/models/compute/data_centers.rb in fog-maestrodev-1.7.0.20121114190951 vs lib/fog/linode/models/compute/data_centers.rb in fog-maestrodev-1.8.0.20130109172219

- old
+ new

@@ -11,12 +11,12 @@ load datacenters end private def datacenters(id=nil) - connection.avail_datacenters.body['DATA'].map { |datacenter| map_datacenter datacenter } + service.avail_datacenters.body['DATA'].map { |datacenter| map_datacenter datacenter } end - + def map_datacenter(datacenter) datacenter = datacenter.each_with_object({}) { |(k, v), h| h[k.downcase.to_sym] = v } datacenter.merge! :id => datacenter[:datacenterid], :name => datacenter[:location] end end