Use new syntax to configure ohai plugin path
authorTom Hughes <tom@compton.nu>
Mon, 9 May 2016 20:49:38 +0000 (21:49 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 9 May 2016 20:49:38 +0000 (21:49 +0100)
cookbooks/chef/templates/default/client.rb.erb

index f151c7d0760a31ef947315b49855ea940c6be2fb..65bf700e8dbe4a56880e037c55fe40074016bca5 100644 (file)
@@ -27,7 +27,7 @@ chef_server_url "https://chef.openstreetmap.org/organizations/openstreetmap"
 
 # Make our plugins visible to ohai
 
-Ohai::Config[:plugin_path] << "<%= node[:ohai][:plugin_dir] %>"
+ohai.plugin_path << "<%= node[:ohai][:plugin_dir] %>"
 
 # Load supporting code for report handlers