Add created_at and requires_pvops_kernel to Linode Image model.

This commit is contained in:
Phil Ross 2015-10-24 15:28:49 +01:00
parent 60697f2437
commit b46a2e78c5
2 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,8 @@ module Fog
attribute :name
attribute :bits
attribute :image_size
attribute :created_at, types: 'time'
attribute :requires_pvops_kernel
end
end
end

View File

@ -25,7 +25,8 @@ module Fog
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 ))
:requires_pvops_kernel => image[:requirespvopskernel], :bits => ((image[:is64bit] == 1) ? 64 : 32 ),
:created_at => image[:create_dt])
end
end
end