1
0
Fork 0
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:
Edward Muller 2010-05-19 02:38:50 +08:00 committed by Wesley Beary
parent 582865dade
commit 04aaecd9cb
3 changed files with 8 additions and 2 deletions

View file

@ -10,6 +10,8 @@ module Fog
attribute :name
attribute :status
attribute :OperatingSystem
attribute :VirtualHardware
def destroy
requires :id

View file

@ -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')

View file

@ -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)