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:
parent
4b21d69b0c
commit
bb217fd865
1 changed files with 4 additions and 3 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue