lib/fog/openstack/requests/volume/get_volume_details.rb in fog-1.22.0 vs lib/fog/openstack/requests/volume/get_volume_details.rb in fog-1.22.1
- old
+ new
@@ -1,23 +1,19 @@
module Fog
module Volume
class OpenStack
class Real
-
def get_volume_details(volume_id)
-
request(
:expects => 200,
:method => 'GET',
:path => "volumes/#{volume_id}"
)
end
-
end
class Mock
-
def get_volume_details(detailed=true)
response = Excon::Response.new
response.status = 200
response.body = {
'volume' => {
@@ -34,9 +30,8 @@
}
}
response
end
end
-
end
end
end