mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[rackspace|storage] same as last, but don't destructively modify options
This commit is contained in:
parent
ef3fb86871
commit
3423f0ead1
2 changed files with 2 additions and 2 deletions
|
@ -29,7 +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?}
|
options = options.reject {|key, value| value.nil?}
|
||||||
response = request(
|
response = request(
|
||||||
:expects => 200,
|
:expects => 200,
|
||||||
:method => 'GET',
|
:method => 'GET',
|
||||||
|
|
|
@ -18,7 +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?}
|
options = options.reject {|key, value| value.nil?}
|
||||||
response = request(
|
response = request(
|
||||||
:expects => [200, 204],
|
:expects => [200, 204],
|
||||||
:method => 'GET',
|
:method => 'GET',
|
||||||
|
|
Loading…
Add table
Reference in a new issue