From 3423f0ead1ce3ca6c956a1758c60a752c56b123b Mon Sep 17 00:00:00 2001 From: geemus Date: Wed, 26 Jan 2011 11:15:34 -0800 Subject: [PATCH] [rackspace|storage] same as last, but don't destructively modify options --- lib/fog/storage/requests/rackspace/get_container.rb | 2 +- lib/fog/storage/requests/rackspace/get_containers.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fog/storage/requests/rackspace/get_container.rb b/lib/fog/storage/requests/rackspace/get_container.rb index 66e79a3c6..155400c35 100644 --- a/lib/fog/storage/requests/rackspace/get_container.rb +++ b/lib/fog/storage/requests/rackspace/get_container.rb @@ -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', diff --git a/lib/fog/storage/requests/rackspace/get_containers.rb b/lib/fog/storage/requests/rackspace/get_containers.rb index fa8c67142..ceef8aa1d 100644 --- a/lib/fog/storage/requests/rackspace/get_containers.rb +++ b/lib/fog/storage/requests/rackspace/get_containers.rb @@ -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',