Browse Source

Work around CHEF-3493: it also affects file-based callbacks.

Andrea Campi 11 years ago
parent
commit
731ea24c30
1 changed files with 1 additions and 1 deletions
  1. 1 1
      libraries/default.rb

+ 1 - 1
libraries/default.rb

@@ -178,7 +178,7 @@ class Chef
         if ::File.exist?(callback_file)
           Dir.chdir(release_path) do
             Chef::Log.info "#{@new_resource} running deploy hook #{callback_file}"
-            recipe_eval { from_file(callback_file) }
+            safe_recipe_eval { from_file(callback_file) }
           end
         end
       end