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

- old
+ new

@@ -17,12 +17,12 @@ nil end private def images(id=nil) - connection.avail_distributions(id).body['DATA'].map { |image| map_image image } + service.avail_distributions(id).body['DATA'].map { |image| map_image image } end - + def map_image(image) image = image.each_with_object({}) { |(k, v), h| h[k.downcase.to_sym] = v } image.merge!(:id => image[:distributionid], :name => image[:label], :image_size => image[:minimagesize], :kernel_id => image[:requirespvopskernel], :bits => ((image[:is64bit] == 1) ? 64 : 32 )) end