summaryrefslogtreecommitdiff
path: root/lib/chef/chef_fs
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2013-10-16 13:52:16 -0700
committerJohn Keiser <jkeiser@opscode.com>2013-10-16 13:52:16 -0700
commite92b71e3d04bcc9fd405a4e3e8978bf6ddd036e6 (patch)
tree484a423069a5edde2cfbf96c6363db4f30ea6438 /lib/chef/chef_fs
parent07eb295ab11f12c7744292348a663501b8b2dd97 (diff)
parent2ff649179d68cec8e10b5b9c1472336e0591a22f (diff)
downloadchef-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.rb2
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