lib/fog/openstack/requests/compute/get_volume_details.rb in fog-1.22.0 vs lib/fog/openstack/requests/compute/get_volume_details.rb in fog-1.22.1

- old
+ new

@@ -1,23 +1,19 @@ module Fog module Compute class OpenStack class Real - def get_volume_details(volume_id) - request( :expects => 200, :method => 'GET', :path => "os-volumes/#{volume_id}" ) end - end class Mock - def get_volume_details(volume_id) response = Excon::Response.new if data = self.data[:volumes][volume_id] response.status = 200 response.body = { 'volume' => data } @@ -25,9 +21,8 @@ else raise Fog::Compute::OpenStack::NotFound end end end - end end end