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

[rackspace|storage] same as last, but don't destructively modify options

This commit is contained in:
geemus 2011-01-26 11:15:34 -08:00
parent ef3fb86871
commit 3423f0ead1
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ module Fog
# * 'last_modified'<~String> - Last modified timestamp
# * 'name'<~String> - Name of object
def get_container(container, options = {})
options.reject! {|key, value| value.nil?}
options = options.reject {|key, value| value.nil?}
response = request(
:expects => 200,
:method => 'GET',

View file

@ -18,7 +18,7 @@ module Fog
# * 'count'<~Integer>: - Number of items in container
# * 'name'<~String>: - Name of container
def get_containers(options = {})
options.reject! {|key, value| value.nil?}
options = options.reject {|key, value| value.nil?}
response = request(
:expects => [200, 204],
:method => 'GET',