lib/fog/virtual_box/models/compute/servers.rb in fog-1.8.0 vs lib/fog/virtual_box/models/compute/servers.rb in fog-1.9.0
- old
+ new
@@ -8,11 +8,11 @@
class Servers < Fog::Collection
model Fog::Compute::VirtualBox::Server
def all
- data = connection.machines.map do |machine|
+ data = service.machines.map do |machine|
{
:raw => machine
}
end
load(data)
@@ -26,10 +26,10 @@
# server.setup(:password => server.password)
# server
end
def get(server_id)
- machine = connection.find_machine(server_id)
+ machine = service.find_machine(server_id)
new(:raw => machine)
rescue ::VirtualBox::Exceptions::ObjectNotFoundException
nil
end