Skip to content

Commit

Permalink
Merge pull request #145 from vladgh/master
Browse files Browse the repository at this point in the history
Fail silently when service is not installed
  • Loading branch information
tuxmea authored Jan 11, 2018
2 parents 8d2c271 + 6fc08ce commit b5415bb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/facter/alert_manager_running.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

Facter.add('prometheus_alert_manager_running') do
setcode do
service.provider.status == :running
begin
service.provider.status == :running
rescue Puppet::Error
false
end
end
end

0 comments on commit b5415bb

Please sign in to comment.