From 8d947b2a446bf95c8e863f1fb35f85f8c64a45a1 Mon Sep 17 00:00:00 2001 From: geemus Date: Fri, 15 Aug 2014 09:28:30 -0500 Subject: [PATCH] [hp|storage] fix storage tests to use new excon headers stuff --- lib/fog/hp/models/storage/files.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/fog/hp/models/storage/files.rb b/lib/fog/hp/models/storage/files.rb index d16a5916b..7aa361841 100644 --- a/lib/fog/hp/models/storage/files.rb +++ b/lib/fog/hp/models/storage/files.rb @@ -53,11 +53,7 @@ module Fog def get(key, &block) requires :directory data = service.get_object(directory.key, key, &block) - file_data = {} - data.headers.each do |key, value| - file_data[key] = value - end - file_data.merge({ + file_data = data.headers.merge({ :body => data.body, :key => key })