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:
parent
8f664c1ffc
commit
b1bb07e48d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue