summaryrefslogtreecommitdiff
path: root/lib/chef/recipe.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/recipe.rb')
-rw-r--r--lib/chef/recipe.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/recipe.rb b/lib/chef/recipe.rb
index be188817d6..4009677936 100644
--- a/lib/chef/recipe.rb
+++ b/lib/chef/recipe.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require "yaml" unless defined?(YAML)
+autoload :YAML, "yaml"
require_relative "dsl/recipe"
require_relative "mixin/from_file"
require_relative "mixin/deprecation"