Browse Source

Only call #converge if it's defined; this lets us tell platforms affected by CHEF-3589 / CHEF-3493 by those where they are fixed.

Hat tip to ~kallistec for the idea.
Andrea Campi 11 years ago
parent
commit
f9b875f8d2
1 changed files with 1 additions and 4 deletions
  1. 1 4
      libraries/default.rb

+ 1 - 4
libraries/default.rb

@@ -185,10 +185,7 @@ class Chef
 
       def safe_recipe_eval(&callback_code)
         recipe_eval(&callback_code)
-        version = Chef::Version.new(Chef::VERSION)
-        if version.major >= 10 && version.minor >= 14
-          converge
-        end
+        converge if respond_to?(:converge)
       end
     end
   end