diff options
author | Nimisha Sharad <nimisha.sharad@msystechnologies.com> | 2016-09-23 06:32:31 +0530 |
---|---|---|
committer | Matt Wrock <matt@mattwrock.com> | 2016-09-22 18:02:31 -0700 |
commit | e67fc3a2f7ca71bd008204e93fa2c37659e1008c (patch) | |
tree | d6e686f11480d8be570d7e9d571b3d437ef76287 /lib/chef | |
parent | 5c1fe121531644bd6e267acb833194711fc9c113 (diff) | |
download | chef-e67fc3a2f7ca71bd008204e93fa2c37659e1008c.tar.gz |
Handling Errno::ETIMEDOUT (#5358)
* Handling Errno::ETIMEDOUT
* spec for Errno::ETIMEDOUT
* rubocop fix
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/provider/remote_file/content.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/remote_file/content.rb b/lib/chef/provider/remote_file/content.rb index e44096428b..983285307a 100644 --- a/lib/chef/provider/remote_file/content.rb +++ b/lib/chef/provider/remote_file/content.rb @@ -54,7 +54,7 @@ class Chef as_uri(source) end raw_file = grab_file_from_uri(uri) - rescue SocketError, Errno::ECONNREFUSED, Errno::ENOENT, Errno::EACCES, Timeout::Error, Net::HTTPServerException, Net::HTTPFatalError, Net::FTPError => e + rescue SocketError, Errno::ECONNREFUSED, Errno::ENOENT, Errno::EACCES, Timeout::Error, Net::HTTPServerException, Net::HTTPFatalError, Net::FTPError, Errno::ETIMEDOUT => e Chef::Log.warn("#{@new_resource} cannot be downloaded from #{source}: #{e}") if source = sources.shift Chef::Log.info("#{@new_resource} trying to download from another mirror") |