mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[rackspace] fixing broken tests
This commit is contained in:
parent
d29f15f24d
commit
428d4d142c
1 changed files with 2 additions and 2 deletions
|
@ -45,8 +45,6 @@ module Fog
|
|||
new_error
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def set_transaction_id(error, service)
|
||||
return unless service && service.respond_to?(:request_id_header) && error.response
|
||||
@transaction_id = error.response.headers[service.request_id_header]
|
||||
|
@ -75,8 +73,10 @@ module Fog
|
|||
new_error.instance_variable_set(:@validation_errors, new_error.response_data['badRequest']['validationErrors'])
|
||||
end
|
||||
|
||||
status_code = error.response ? error.response.status : nil
|
||||
new_error.instance_variable_set(:@status_code, status_code)
|
||||
new_error.set_transaction_id(error, service)
|
||||
new_error
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue