Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix changed/failed resources message template.

  • Loading branch information...
commit 9dc75a5b35fc8a6a309e6a3f8a4ec6f0517bab07 1 parent 986eb0f
Alexis Lê-Quôc alq666 authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 lib/puppet/reports/datadog_reports.rb
8 lib/puppet/reports/datadog_reports.rb
@@ -83,16 +83,16 @@ def process
83 83
84 84 # List changed resources
85 85 if changed_resources.length > 0
86   - event_data << "\nThe resources that changed are:\n@@@"
  86 + event_data << "\nThe resources that changed are:\n@@@\n"
87 87 changed_resources.each {|s| event_data << "#{s.title} in #{s.file}:#{s.line}\n" }
88   - event_data << "@@@\n"
  88 + event_data << "\n@@@\n"
89 89 end
90 90
91 91 # List failed resources
92 92 if failed_resources.length > 0
93   - event_data << "\nThe resources that failed are:\n@@@"
  93 + event_data << "\nThe resources that failed are:\n@@@\n"
94 94 failed_resources.each {|s| event_data << "#{s.title} in #{s.file}:#{s.line}\n" }
95   - event_data << "@@@\n"
  95 + event_data << "\n@@@\n"
96 96 end
97 97
98 98 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.