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:
parent
b7d4c9c571
commit
3605570ab2
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue