lib/fog/ecloud/models/compute/associations.rb in fog-1.8.0 vs lib/fog/ecloud/models/compute/associations.rb in fog-1.9.0

- old
+ new

@@ -8,11 +8,11 @@ identity :href model Fog::Compute::Ecloud::Association def all - data = connection.get_associations(href).body + data = service.get_associations(href).body if data[:Associations] data = data[:Associations] if data.is_a?(String) && data.empty? data = [] elsif data.is_a?(Hash) @@ -21,10 +21,10 @@ end load(data) end def get(uri) - if data = connection.get_association(uri) + if data = service.get_association(uri) new(data.body) end rescue Fog::Errors::NotFound nil end