Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix changed/failed resources message template.

  • Loading branch information...
commit 9dc75a5b35fc8a6a309e6a3f8a4ec6f0517bab07 1 parent 986eb0f
@alq666 alq666 authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/puppet/reports/datadog_reports.rb
View
8 lib/puppet/reports/datadog_reports.rb
@@ -83,16 +83,16 @@ def process
# List changed resources
if changed_resources.length > 0
- event_data << "\nThe resources that changed are:\n@@@"
+ event_data << "\nThe resources that changed are:\n@@@\n"
changed_resources.each {|s| event_data << "#{s.title} in #{s.file}:#{s.line}\n" }
- event_data << "@@@\n"
+ event_data << "\n@@@\n"
end
# List failed resources
if failed_resources.length > 0
- event_data << "\nThe resources that failed are:\n@@@"
+ event_data << "\nThe resources that failed are:\n@@@\n"
failed_resources.each {|s| event_data << "#{s.title} in #{s.file}:#{s.line}\n" }
- event_data << "@@@\n"
+ event_data << "\n@@@\n"
end
Puppet.debug "Sending metrics for #{@msg_host} to Datadog"

0 comments on commit 9dc75a5

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