summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keiser <jkeiser@opscode.com>2013-06-03 15:15:53 -0700
committerJohn Keiser <jkeiser@opscode.com>2013-06-07 13:12:36 -0700
commit79ee4c54bd0cee40098d280996741b147d0519f4 (patch)
tree290b85536b753de6deed0fb67e372cc08dc2861b
parent2110aa47e073e31ce920ddf1e47d282100edd644 (diff)
downloadchef-79ee4c54bd0cee40098d280996741b147d0519f4.tar.gz
Fix cookbook freeze error on Chef 10
-rw-r--r--lib/chef/chef_fs/file_system/cookbooks_dir.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/chef_fs/file_system/cookbooks_dir.rb b/lib/chef/chef_fs/file_system/cookbooks_dir.rb
index f54584bcab..193788dc23 100644
--- a/lib/chef/chef_fs/file_system/cookbooks_dir.rb
+++ b/lib/chef/chef_fs/file_system/cookbooks_dir.rb
@@ -76,6 +76,8 @@ class Chef
else
raise Chef::ChefFS::FileSystem::OperationFailedError.new(:write, self, e), "HTTP error writing: #{e}"
end
+ rescue Chef::Exceptions::CookbookFrozen => e
+ raise Chef::ChefFS::FileSystem::CookbookFrozenError.new(:write, self, e), "Cookbook #{other.name} is frozen"
end
# Knife currently does not understand versioned cookbooks