Skip to content

Commit

Permalink
small fixes to Vdc to allow vdc.servers to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Muller authored and Wesley Beary committed May 18, 2010
1 parent 582865d commit 04aaecd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/fog/terremark/models/shared/server.rb
Expand Up @@ -10,6 +10,8 @@ class Server < Fog::Model

attribute :name
attribute :status
attribute :OperatingSystem
attribute :VirtualHardware

def destroy
requires :id
Expand Down
4 changes: 2 additions & 2 deletions lib/fog/terremark/models/shared/task.rb
Expand Up @@ -13,8 +13,8 @@ class Task < Fog::Model
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')
Expand Down
4 changes: 4 additions & 0 deletions lib/fog/terremark/models/shared/vdc.rb
Expand Up @@ -18,6 +18,10 @@ def addresses
connection.addresses(:vdc_id => @id)
end

def servers
connection.servers(:vdc_id => @id)
end

private

def href=(new_href)
Expand Down

0 comments on commit 04aaecd

Please sign in to comment.