From 7fd174277679739fb2c7aa628a26fade406655df Mon Sep 17 00:00:00 2001 From: John Keiser Date: Wed, 13 Jan 2016 14:12:21 -0800 Subject: Get download of cookbook_artifacts working --- lib/chef/chef_fs/config.rb | 2 +- lib/chef/chef_fs/file_system/chef_server/versioned_cookbooks_dir.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/chef/chef_fs/config.rb b/lib/chef/chef_fs/config.rb index 29579be677..5b9d34441b 100644 --- a/lib/chef/chef_fs/config.rb +++ b/lib/chef/chef_fs/config.rb @@ -236,7 +236,7 @@ class Chef when "static" object_names = %w(cookbooks data_bags environments roles) when "hosted_everything" - object_names = %w(acls clients cookbooks containers data_bags environments groups nodes roles policies policy_groups) + object_names = %w(acls clients cookbooks cookbook_artifacts containers data_bags environments groups nodes roles policies policy_groups) else object_names = %w(clients cookbooks data_bags environments nodes roles users) end diff --git a/lib/chef/chef_fs/file_system/chef_server/versioned_cookbooks_dir.rb b/lib/chef/chef_fs/file_system/chef_server/versioned_cookbooks_dir.rb index 6a987bd233..0b1480cb2d 100644 --- a/lib/chef/chef_fs/file_system/chef_server/versioned_cookbooks_dir.rb +++ b/lib/chef/chef_fs/file_system/chef_server/versioned_cookbooks_dir.rb @@ -50,7 +50,6 @@ class Chef result = [] root.get_json("#{api_path}/?num_versions=all").each_pair do |cookbook_name, cookbooks| cookbooks["versions"].each do |cookbook_version| - puts cookbook_version result << VersionedCookbookDir.new("#{cookbook_name}-#{cookbook_version['version']}", self) end end -- cgit v1.2.1