Explorar o código

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 %!s(int64=11) %!d(string=hai) anos
pai
achega
f9b875f8d2
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  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