From eeef9eec8a528188533c125cdd6509f6408f2e18 Mon Sep 17 00:00:00 2001 From: Gary Forghetti <5776430+gforghetti@users.noreply.github.com> Date: Sun, 13 May 2018 17:06:51 -0400 Subject: [PATCH] Chef OHAI configuration changed. Plugin was generating a chef client error. https://docs.chef.io/ohai.html#ohai-settings-in-client-rb --- lib/vagrant-ohai/action_configure_chef.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-ohai/action_configure_chef.rb b/lib/vagrant-ohai/action_configure_chef.rb index 0748453..dd4e662 100644 --- a/lib/vagrant-ohai/action_configure_chef.rb +++ b/lib/vagrant-ohai/action_configure_chef.rb @@ -19,7 +19,7 @@ def call(env) private def ohai_custom_config(current_conf) tmp = Tempfile.new(["chef-custom-config", ".rb"]) - tmp.puts 'Ohai::Config[:plugin_path] << "/etc/chef/ohai_plugins"' + tmp.puts 'ohai.plugin_path << "/etc/chef/ohai_plugins"' tmp.write(File.read(current_conf)) if current_conf tmp.close tmp