1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Allow passing query options to snapshots endpoint.

This commit is contained in:
Sean Handley 2015-05-06 11:42:40 +01:00
parent 4b21d69b0c
commit bb217fd865

View file

@ -2,18 +2,19 @@ module Fog
module Volume
class OpenStack
class Real
def list_snapshots(detailed=true)
def list_snapshots(detailed=true, options={})
path = detailed ? 'snapshots/detail' : 'snapshots'
request(
:expects => 200,
:method => 'GET',
:path => path
:path => path,
:query => options
)
end
end
class Mock
def list_snapshots(detailed=true)
def list_snapshots(detailed=true, options={})
response = Excon::Response.new
response.status = 200
response.body = {