Skip to content

Commit 333064e

Browse files
Merge pull request #562 from ramereth/ohai-package-notify
Add missing notifies for ohai[reload_packages] on Fedora/RHEL
2 parents 70fa62f + 2421f2f commit 333064e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

recipes/default.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ class Chef::Recipe
174174
package 'rabbitmq-server' do
175175
action :install
176176
version node['rabbitmq']['version'] if node['rabbitmq']['pin_distro_version']
177+
notifies :reload, 'ohai[reload_packages]', :immediately
177178
end
178179
else
179180
remote_file "#{Chef::Config[:file_cache_path]}/#{rpm_package_name}" do
@@ -213,6 +214,7 @@ class Chef::Recipe
213214
package 'rabbitmq-server' do
214215
action :install
215216
version node['rabbitmq']['version'] if node['rabbitmq']['pin_distro_version']
217+
notifies :reload, 'ohai[reload_packages]', :immediately
216218
end
217219
else
218220
remote_file "#{Chef::Config[:file_cache_path]}/#{rpm_package_name}" do

0 commit comments

Comments
 (0)