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

Add volume_attachments to server model.

This commit is contained in:
Rupak Ganguly 2012-08-14 16:19:10 -04:00
parent b7d4c9c571
commit 3605570ab2

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