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

Merge pull request #792 from manuelmeurer/patch-2

Fix sync_clock method, only rescue Excon::Errors::HTTPStatusError that a...
This commit is contained in:
Wesley Beary 2012-03-13 07:34:09 -07:00
commit 5e8f5517fb

View file

@ -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