lib/fog/hp/models/compute/flavors.rb in fog-1.8.0 vs lib/fog/hp/models/compute/flavors.rb in fog-1.9.0

- old
+ new

@@ -8,15 +8,15 @@ class Flavors < Fog::Collection model Fog::Compute::HP::Flavor def all - data = connection.list_flavors_detail.body['flavors'] + data = service.list_flavors_detail.body['flavors'] load(data) end def get(flavor_id) - data = connection.get_flavor_details(flavor_id).body['flavor'] + data = service.get_flavor_details(flavor_id).body['flavor'] new(data) rescue Fog::Compute::HP::NotFound nil end