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 21e9387f2a..be188817d6 100644
--- a/lib/chef/recipe.rb
+++ b/lib/chef/recipe.rb
@@ -17,7 +17,7 @@
# limitations under the License.
#
-require "yaml"
+require "yaml" unless defined?(YAML)
require_relative "dsl/recipe"
require_relative "mixin/from_file"
require_relative "mixin/deprecation"