mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[rackspace|storage] remove nil query params in requests
This commit is contained in:
parent
7d45e829d0
commit
856ced6498
2 changed files with 2 additions and 0 deletions
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Add table
Reference in a new issue