Skip to content

Commit

Permalink
[rackspace|storage] same as last, but don't destructively modify options
Browse files Browse the repository at this point in the history
  • Loading branch information
geemus committed Jan 26, 2011
1 parent ef3fb86 commit 3423f0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/fog/storage/requests/rackspace/get_container.rb
Expand Up @@ -29,7 +29,7 @@ class Real
# * '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',
Expand Down
2 changes: 1 addition & 1 deletion lib/fog/storage/requests/rackspace/get_containers.rb
Expand Up @@ -18,7 +18,7 @@ class Real
# * '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',
Expand Down

0 comments on commit 3423f0e

Please sign in to comment.