Skip to content

Commit c60d09d

Browse files
schisamojtimberman
authored andcommitted
force alternative update and ohai reload immediately
1 parent 5dcda46 commit c60d09d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

recipes/default.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
returns 0
3636
only_if do platform?("ubuntu", "debian") end
3737
action :nothing
38-
notifies :create, resources(:ruby_block => "reload_ohai")
38+
notifies :create, resources(:ruby_block => "reload_ohai"), :immediately
3939
end
4040

4141
node.run_state[:java_pkgs].each do |pkg|
@@ -55,7 +55,7 @@
5555
unless node.languages.java.hotspot.name.match(current_java_version_pattern)
5656
log "Java install_flavor has changed, re-running 'update-java-alternatives'" do
5757
level :info
58-
notifies :run, resources(:execute => "update-java-alternatives"), :delayed
58+
notifies :run, resources(:execute => "update-java-alternatives"), :immediately
5959
end
6060
end
6161
end

0 commit comments

Comments
 (0)