diff options
author | John Keiser <jkeiser@opscode.com> | 2013-10-16 13:52:16 -0700 |
---|---|---|
committer | John Keiser <jkeiser@opscode.com> | 2013-10-16 13:52:16 -0700 |
commit | e92b71e3d04bcc9fd405a4e3e8978bf6ddd036e6 (patch) | |
tree | 484a423069a5edde2cfbf96c6363db4f30ea6438 /lib/chef/chef_fs | |
parent | 07eb295ab11f12c7744292348a663501b8b2dd97 (diff) | |
parent | 2ff649179d68cec8e10b5b9c1472336e0591a22f (diff) | |
download | chef-e92b71e3d04bcc9fd405a4e3e8978bf6ddd036e6.tar.gz |
Sign requests to download cookbook files in knife download
Diffstat (limited to 'lib/chef/chef_fs')
-rw-r--r-- | lib/chef/chef_fs/file_system/cookbook_file.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/chef_fs/file_system/cookbook_file.rb b/lib/chef/chef_fs/file_system/cookbook_file.rb index 6673ad73f4..7868322590 100644 --- a/lib/chef/chef_fs/file_system/cookbook_file.rb +++ b/lib/chef/chef_fs/file_system/cookbook_file.rb @@ -37,7 +37,7 @@ class Chef def read begin - tmpfile = Chef::HTTP::Simple.new(file[:url]).streaming_request(file[:url]) + tmpfile = rest.streaming_request(file[:url]) rescue Timeout::Error => e raise Chef::ChefFS::FileSystem::OperationFailedError.new(:read, self, e), "Timeout reading #{file[:url]}: #{e}" rescue Net::HTTPServerException => e |