summaryrefslogtreecommitdiff
path: root/lib/chef/knife/yaml_convert.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/knife/yaml_convert.rb')
-rw-r--r--lib/chef/knife/yaml_convert.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/yaml_convert.rb b/lib/chef/knife/yaml_convert.rb
index 6a6e11aeec..ff64f5c53a 100644
--- a/lib/chef/knife/yaml_convert.rb
+++ b/lib/chef/knife/yaml_convert.rb
@@ -16,7 +16,7 @@
# limitations under the License.
#
-require "yaml"
+require "yaml" unless defined?(YAML)
require_relative "../knife"
class Chef::Knife::YamlConvert < Chef::Knife