Skip to content

Instantly share code, notes, and snippets.

Created May 6, 2011 08:51
Show Gist options
  • Select an option

  • Save anonymous/958652 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/958652 to your computer and use it in GitHub Desktop.
cookbook_uploader.diff
--- /home/rubiojr/src/chef/chef/lib/chef/cookbook_uploader.rb 2011-04-29 12:38:09.736806953 +0200
+++ /usr/lib/ruby/gems/1.8/gems/chef-0.10.0/lib/chef/cookbook_uploader.rb 2011-05-06 10:38:15.941175063 +0200
@@ -134,7 +134,7 @@
RestClient::Resource.new(url, :headers=>headers, :timeout=>1800, :open_timeout=>1800).put(file_contents)
checksums_to_upload.delete(checksum)
rescue RestClient::Exception => e
- ui.error("Failed to upload #@cookbook : #{e.message}\n#{e.response.body}")
+ Chef::Knife.ui.error("Failed to upload #@cookbook : #{e.message}\n#{e.response.body}")
raise
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment