diff options
author | John Dyer <jdyer@tropo.com> | 2014-04-03 11:42:53 -0400 |
---|---|---|
committer | John Dyer <jdyer@tropo.com> | 2014-04-03 11:42:53 -0400 |
commit | c90fb30fead166e23f45677e9efad5f6dfd7939f (patch) | |
tree | 2beedc1a2a1e2eb3bdb4fae64f34c4873c9df3d7 /lib/chef | |
parent | c914b9740781da98543e9b7dc345f5763bbee8d6 (diff) | |
download | chef-c90fb30fead166e23f45677e9efad5f6dfd7939f.tar.gz |
CHEF-5116 - Catch HTTPServerException for 404 in remote_file retry
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 7f9e2332a8..3a8514e077 100644 --- a/lib/chef/provider/remote_file/content.rb +++ b/lib/chef/provider/remote_file/content.rb @@ -48,7 +48,7 @@ class Chef begin uri = URI.parse(source) raw_file = grab_file_from_uri(uri) - rescue SocketError, Errno::ECONNREFUSED, Errno::ENOENT, Errno::EACCES, Timeout::Error, Net::HTTPFatalError, Net::FTPError => e + rescue SocketError, Errno::ECONNREFUSED, Errno::ENOENT, Errno::EACCES, Timeout::Error, Net::HTTPServerException, Net::HTTPFatalError, Net::FTPError => e Chef::Log.warn("#{@new_resource} cannot be downloaded from #{source}: #{e.to_s}") if source = sources.shift Chef::Log.info("#{@new_resource} trying to download from another mirror") |