[rackspace|storage] remove nil query params in requests

This commit is contained in:
geemus 2011-01-26 10:27:28 -08:00
parent 7d45e829d0
commit 856ced6498
2 changed files with 2 additions and 0 deletions

View File

@ -29,6 +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?}
response = request(
:expects => 200,
:method => 'GET',

View File

@ -18,6 +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?}
response = request(
:expects => [200, 204],
:method => 'GET',