diff options
Diffstat (limited to 'lib/chef/knife')
-rw-r--r-- | lib/chef/knife/core/object_loader.rb | 2 | ||||
-rw-r--r-- | lib/chef/knife/yaml_convert.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/knife/core/object_loader.rb b/lib/chef/knife/core/object_loader.rb index 9cabbf97db..5421fc46ce 100644 --- a/lib/chef/knife/core/object_loader.rb +++ b/lib/chef/knife/core/object_loader.rb @@ -16,7 +16,7 @@ # limitations under the License. # -require "ffi_yajl" unless defined?(FFI_Yajl) +autoload :FFI_Yajl, "ffi_yajl" require_relative "../../util/path_helper" require_relative "../../data_bag_item" diff --git a/lib/chef/knife/yaml_convert.rb b/lib/chef/knife/yaml_convert.rb index ff64f5c53a..6bd2d1c0ea 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" unless defined?(YAML) +autoload :YAML, "yaml" require_relative "../knife" class Chef::Knife::YamlConvert < Chef::Knife |