summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2016-01-13 14:12:21 -0800
committerJohn Keiser <john@johnkeiser.com>2016-01-15 09:37:43 -0800
commit7fd174277679739fb2c7aa628a26fade406655df (patch)
treed54c3928213d080496e2942c196e418c7d18d1e7 /lib
parent7731eb6e1e93991af1712be35af476063ebcb4ee (diff)
downloadchef-7fd174277679739fb2c7aa628a26fade406655df.tar.gz
Get download of cookbook_artifacts working
Diffstat (limited to 'lib')
-rw-r--r--lib/chef/chef_fs/config.rb2
-rw-r--r--lib/chef/chef_fs/file_system/chef_server/versioned_cookbooks_dir.rb1
2 files changed, 1 insertions, 2 deletions
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