Skip to content
Browse files

Set events to low priority by default

  • Loading branch information...
1 parent caecbe2 commit 2903015b1030f3c4262fd5d7c8ca503f0df64e16 @alq666 alq666 committed
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/puppet/reports/datadog_reports.rb
View
6 lib/puppet/reports/datadog_reports.rb
@@ -41,7 +41,7 @@ def process
event_title = ''
alert_type = ''
- event_priority = ''
+ event_priority = 'low'
event_data = ''
if defined?(self.status)
@@ -54,21 +54,17 @@ def process
elsif @status == 'changed'
event_title = "Puppet changed resources on #{@msg_host}"
alert_type = "success"
- event_priority = "low"
elsif @status == "unchanged"
event_title = "Puppet ran on, and left #{@msg_host} unchanged"
alert_type = "success"
- event_priority = "low"
else
event_title = "Puppet ran on #{@msg_host}"
alert_type = "success"
- event_priority = "low"
end
else
# for puppet log format 1
event_title = "Puppet ran on #{@msg_host}"
- event_priority = "low"
end
# Extract statuses

0 comments on commit 2903015

Please sign in to comment.
Something went wrong with that request. Please try again.