1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[cloudsigma] Fix excon HTTPStatusError#response not having []= and failing on assignment of json decoded body

This commit is contained in:
Kaloyan Kanev 2013-03-27 17:00:46 +02:00
parent 8f664c1ffc
commit b1bb07e48d

View file

@ -54,7 +54,7 @@ module Fog
response = @connection.request(params)
rescue Excon::Errors::HTTPStatusError => e
e.response[:body] = Fog::JSON.decode(e.response[:body]) unless e.response[:body].empty?
e.response.data[:body] = Fog::JSON.decode(e.response[:body]) unless e.response[:body].empty?
err = Fog::CloudSigma::Errors.slurp_http_status_error(e)
raise err