Skip to content

Commit

Permalink
Merge pull request #562 from ramereth/ohai-package-notify
Browse files Browse the repository at this point in the history
Add missing notifies for ohai[reload_packages] on Fedora/RHEL
  • Loading branch information
michaelklishin authored Jul 17, 2020
2 parents 70fa62f + 2421f2f commit 333064e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ class Chef::Recipe
package 'rabbitmq-server' do
action :install
version node['rabbitmq']['version'] if node['rabbitmq']['pin_distro_version']
notifies :reload, 'ohai[reload_packages]', :immediately
end
else
remote_file "#{Chef::Config[:file_cache_path]}/#{rpm_package_name}" do
Expand Down Expand Up @@ -213,6 +214,7 @@ class Chef::Recipe
package 'rabbitmq-server' do
action :install
version node['rabbitmq']['version'] if node['rabbitmq']['pin_distro_version']
notifies :reload, 'ohai[reload_packages]', :immediately
end
else
remote_file "#{Chef::Config[:file_cache_path]}/#{rpm_package_name}" do
Expand Down

0 comments on commit 333064e

Please sign in to comment.