1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Create bootable volumes from the Volume model.

This commit is contained in:
Ash Wilson 2014-10-01 15:19:21 -04:00
parent 21ec418256
commit 5192d275d7

View file

@ -48,6 +48,10 @@ module Fog
# @return [String] region of the volume
attribute :availability_zone
# @!attribute [rw] image_id
# @return [String] The ID of an image used to create a bootable volume.
attribute :image_id, :aliases => ['image', 'imageRef'], :squash => 'id'
# Returns true if the volume is in a ready state
# @return [Boolean] returns true if volume is in a ready state
def ready?
@ -104,7 +108,8 @@ module Fog
:display_description => display_description,
:volume_type => volume_type,
:availability_zone => availability_zone,
:snapshot_id => attributes[:snapshot_id]
:snapshot_id => attributes[:snapshot_id],
:image_id => attributes[:image_id]
})
merge_attributes(data.body['volume'])
true