mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Add created_at and requires_pvops_kernel to Linode Image model.
This commit is contained in:
parent
60697f2437
commit
b46a2e78c5
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue