mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Adds backwards compatibility comment
This commit is contained in:
parent
b45e0508c7
commit
2a9b278c2e
1 changed files with 3 additions and 1 deletions
|
@ -8,7 +8,9 @@ module Fog
|
|||
class Volumes < Fog::Collection
|
||||
model Fog::Volume::OpenStack::Volume
|
||||
|
||||
def all(options = true)
|
||||
def all(options = {:detailed => true})
|
||||
# the parameter has been "detailed = true" before. Make sure we are
|
||||
# backwards compatible
|
||||
detailed = options.is_a?(Hash) ? options.delete(:detailed) : options
|
||||
load(service.list_volumes(detailed, options).body['volumes'])
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue