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

Merge pull request #3 from SDK-CLI-Docs/feature/58_server_volumes

Add volume_attachments to server model.
This commit is contained in:
Rupak Ganguly 2012-08-15 16:56:40 +02:00
commit f6ec48c307

View file

@ -196,6 +196,13 @@ module Fog
connection.create_image(id, name, metadata)
end
def volume_attachments
requires :id
if vols = @connection.list_server_volumes(id).body
vols["volumeAttachments"]
end
end
def save
raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if identity
requires :flavor_id, :image_id, :name