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

- old
+ new

@@ -8,11 +8,11 @@ identity :href model Fog::Compute::Ecloud::CatalogItem def all - data = connection.get_catalog(href).body#[:Locations][:Location][:Catalog][:CatalogEntry] + data = service.get_catalog(href).body#[:Locations][:Location][:Catalog][:CatalogEntry] if data[:Locations][:Location].is_a?(Hash) data = [] if data[:Locations][:Location][:Catalog].is_a?(String) && data[:Locations][:Location][:Catalog].empty? load(data) elsif data[:Locations][:Location].is_a?(Array) r_data = [] @@ -26,10 +26,10 @@ load(r_data) end end def get(uri) - if data = connection.get_catalog_item(uri) + if data = service.get_catalog_item(uri) new(data.body) end rescue Fog::Errors::NotFound nil end