mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Fix sync_clock method, only rescue Excon::Errors::HTTPStatusError that are known to have a #response method, let all other exceptions bubble up
This commit is contained in:
parent
2a4abcd092
commit
c88b16a008
1 changed files with 2 additions and 2 deletions
|
@ -8,8 +8,8 @@ module Fog
|
|||
def sync_clock
|
||||
response = begin
|
||||
get_service
|
||||
rescue => error
|
||||
error.respond_to(:response) ? error.response : error.message
|
||||
rescue Excon::Errors::HTTPStatusError => error
|
||||
error.response
|
||||
end
|
||||
Fog::Time.now = Time.parse(response.headers['Date'])
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue