From 00118475e93310d47972edb29bad5e5c782af755 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 9 May 2024 22:04:11 +0100 Subject: [PATCH] Remove ohai plugin cleanup code --- cookbooks/ohai/resources/plugin.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/cookbooks/ohai/resources/plugin.rb b/cookbooks/ohai/resources/plugin.rb index 7a78a8806..72719e2ec 100644 --- a/cookbooks/ohai/resources/plugin.rb +++ b/cookbooks/ohai/resources/plugin.rb @@ -36,12 +36,6 @@ action :create do recursive true end - # FIXME: Cleanup of plugins in the old location - declare_resource :file, plugin_old_path do - action :delete - notifies :reload, "ohai[#{new_resource.plugin}]" - end - declare_resource :template, plugin_path do source new_resource.template owner "root" @@ -58,10 +52,6 @@ action :delete do end action_class do - def plugin_old_path - "/etc/chef/ohai/#{new_resource.plugin}.rb" - end - def plugin_path "/etc/chef/ohai/plugins/#{new_resource.plugin}.rb" end -- 2.45.2