mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[hp|storage] fix storage tests to use new excon headers stuff
This commit is contained in:
parent
d93eebb9b8
commit
8d947b2a44
1 changed files with 1 additions and 5 deletions
|
@ -53,11 +53,7 @@ module Fog
|
||||||
def get(key, &block)
|
def get(key, &block)
|
||||||
requires :directory
|
requires :directory
|
||||||
data = service.get_object(directory.key, key, &block)
|
data = service.get_object(directory.key, key, &block)
|
||||||
file_data = {}
|
file_data = data.headers.merge({
|
||||||
data.headers.each do |key, value|
|
|
||||||
file_data[key] = value
|
|
||||||
end
|
|
||||||
file_data.merge({
|
|
||||||
:body => data.body,
|
:body => data.body,
|
||||||
:key => key
|
:key => key
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue