Issue #9167 has been updated by Todd Zullinger.

I know this isn't the correct fix, but here's what I did to stop getting these 
essentially empty reports on every run:

    diff --git i/lib/puppet/reports/tagmail.rb w/lib/puppet/reports/tagmail.rb
    index 9982678..9e6c0ab 100644
    --- i/lib/puppet/reports/tagmail.rb
    +++ w/lib/puppet/reports/tagmail.rb
    @@ -54,6 +54,9 @@ Puppet::Reports.register_report(:tagmail) do
             end
           end
     
    +      # Remove "Finished catalog run" messages.
    +      messages = messages.reject {|log| log.message =~ /^Finished catalog 
run in \d+\.\d+ seconds$/}
    +
           # Now go through and remove any messages that match our negative tags
           messages = messages.reject do |log|
             true if neg.detect do |tag| log.tagged?(tag) end


----------------------------------------
Bug #9167: tagmail report sends email when nothing happens
https://projects.puppetlabs.com/issues/9167#change-63653

Author: Spencer Rinehart
Status: Re-opened
Priority: Low
Assignee: Kelsey Hightower
Category: reports
Target version: 2.7.15
Affected Puppet version: 2.6.9
Keywords: tagmail
Branch: https://github.com/puppetlabs/puppet/pull/618


Since upgrading to the 2.7 series (2.6.8 -> 2.7.3), the tagmail report will 
send an email with 1 line, shown below, after every run.  Before the upgrade, 
it would only send emails when something occurred during the puppet run.

Steps to reproduce:
Enable tagmail report
Execute a puppet run that produces no updates

Expected result:
No email sent

Actual result:
Email sent with line below

Email body:
Tue Aug 23 13:11:59 -0400 2011 Puppet (notice): Finished catalog run in 16.60 
seconds 

tagmail.conf:
all: [email protected]


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to