summaryrefslogtreecommitdiff
path: root/lib/chef/knife/cookbook_site_share.rb
diff options
context:
space:
mode:
authorsawanoboly <sawanoboriyu@higanworks.com>2014-08-12 15:56:16 +0900
committersawanoboly <sawanoboriyu@higanworks.com>2014-08-12 15:56:16 +0900
commit5c94009b6053e7ae71d528485f3560e2bf8a7851 (patch)
tree4070625ed40df73783c3fda3149ed526fbc34447 /lib/chef/knife/cookbook_site_share.rb
parentbea385b45620c5c5769d8680758181770b3c148f (diff)
parentf71cb384f3bbdca9093af76830b8ae3949d54c4e (diff)
downloadchef-5c94009b6053e7ae71d528485f3560e2bf8a7851.tar.gz
Merge remote-tracking branch 'upstream/master' into prevew_archive_before_site_share
Diffstat (limited to 'lib/chef/knife/cookbook_site_share.rb')
-rw-r--r--lib/chef/knife/cookbook_site_share.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/cookbook_site_share.rb b/lib/chef/knife/cookbook_site_share.rb
index 0a8461937d..71bbb00abc 100644
--- a/lib/chef/knife/cookbook_site_share.rb
+++ b/lib/chef/knife/cookbook_site_share.rb
@@ -101,7 +101,7 @@ class Chef
def do_upload(cookbook_filename, cookbook_category, user_id, user_secret_filename)
uri = "http://cookbooks.opscode.com/api/v1/cookbooks"
- category_string = { 'category'=>cookbook_category }.to_json
+ category_string = Chef::JSONCompat.to_json({ 'category'=>cookbook_category })
http_resp = Chef::CookbookSiteStreamingUploader.post(uri, user_id, user_secret_filename, {
:tarball => File.open(cookbook_filename),