lib/fog/ovirt/models/compute/servers.rb in fog-maestrodev-1.7.0.20121114190951 vs lib/fog/ovirt/models/compute/servers.rb in fog-maestrodev-1.8.0.20130109172219
- old
+ new
@@ -8,14 +8,14 @@
class Servers < Fog::Collection
model Fog::Compute::Ovirt::Server
def all(filters = {})
- load connection.list_virtual_machines(filters)
+ load service.list_virtual_machines(filters)
end
def get(id)
- new connection.get_virtual_machine(id)
+ new service.get_virtual_machine(id)
end
def bootstrap(new_attributes = {})
server = create(new_attributes)
server.wait_for { stopped? }