1
0
Fork 0
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:
Hendrik Volkmer 2013-06-04 10:59:49 +03:00
parent b45e0508c7
commit 2a9b278c2e

View file

@ -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