mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
small fixes to Vdc to allow vdc.servers to work
This commit is contained in:
parent
582865dade
commit
04aaecd9cb
3 changed files with 8 additions and 2 deletions
|
@ -10,6 +10,8 @@ module Fog
|
|||
|
||||
attribute :name
|
||||
attribute :status
|
||||
attribute :OperatingSystem
|
||||
attribute :VirtualHardware
|
||||
|
||||
def destroy
|
||||
requires :id
|
||||
|
|
|
@ -13,8 +13,8 @@ module Fog
|
|||
attribute :result, 'Result'
|
||||
attribute :start_time, 'startTime'
|
||||
attribute :status
|
||||
attribute :link 'Link'
|
||||
attribute :error 'Error'
|
||||
attribute :link, 'Link'
|
||||
attribute :error, 'Error'
|
||||
|
||||
def initialize(attributes = {})
|
||||
new_owner = attributes.delete('Owner')
|
||||
|
|
|
@ -18,6 +18,10 @@ module Fog
|
|||
connection.addresses(:vdc_id => @id)
|
||||
end
|
||||
|
||||
def servers
|
||||
connection.servers(:vdc_id => @id)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def href=(new_href)
|
||||
|
|
Loading…
Reference in a new issue