[rackspace|storage] remove nil query params in requests
This commit is contained in:
parent
7d45e829d0
commit
856ced6498
|
@ -29,6 +29,7 @@ module Fog
|
||||||
# * 'last_modified'<~String> - Last modified timestamp
|
# * 'last_modified'<~String> - Last modified timestamp
|
||||||
# * 'name'<~String> - Name of object
|
# * 'name'<~String> - Name of object
|
||||||
def get_container(container, options = {})
|
def get_container(container, options = {})
|
||||||
|
options.reject! {|key, value| value.nil?}
|
||||||
response = request(
|
response = request(
|
||||||
:expects => 200,
|
:expects => 200,
|
||||||
:method => 'GET',
|
:method => 'GET',
|
||||||
|
|
|
@ -18,6 +18,7 @@ module Fog
|
||||||
# * 'count'<~Integer>: - Number of items in container
|
# * 'count'<~Integer>: - Number of items in container
|
||||||
# * 'name'<~String>: - Name of container
|
# * 'name'<~String>: - Name of container
|
||||||
def get_containers(options = {})
|
def get_containers(options = {})
|
||||||
|
options.reject! {|key, value| value.nil?}
|
||||||
response = request(
|
response = request(
|
||||||
:expects => [200, 204],
|
:expects => [200, 204],
|
||||||
:method => 'GET',
|
:method => 'GET',
|
||||||
|
|
Loading…
Reference in New Issue