diff options
author | Luke Kanies <luke@puppetlabs.com> | 2010-04-12 14:56:09 -0700 |
---|---|---|
committer | Luke Kanies <luke@puppetlabs.com> | 2010-04-12 14:56:09 -0700 |
commit | 94fddbc8f746a6062f51e1ab5d24febec3c47f64 (patch) | |
tree | 5572148ac3ad8cce7a4c6290f4b986806076e3f1 /lib/puppet/reports | |
parent | 13d141acce03b50f1bfdee2b2a2cba87bcb3da70 (diff) | |
download | puppet-94fddbc8f746a6062f51e1ab5d24febec3c47f64.tar.gz puppet-94fddbc8f746a6062f51e1ab5d24febec3c47f64.tar.xz puppet-94fddbc8f746a6062f51e1ab5d24febec3c47f64.zip |
Fixing and porting Transaction Report tests
There are still a few unported tests, but it's at least
better now.
Signed-off-by: Luke Kanies <luke@puppetlabs.com>
Diffstat (limited to 'lib/puppet/reports')
-rw-r--r-- | lib/puppet/reports/tagmail.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/puppet/reports/tagmail.rb b/lib/puppet/reports/tagmail.rb index 5e54fa6ec..9f71782f0 100644 --- a/lib/puppet/reports/tagmail.rb +++ b/lib/puppet/reports/tagmail.rb @@ -38,7 +38,7 @@ Puppet::Reports.register_report(:tagmail) do # Find all matching messages. def match(taglists) - reports = [] + matching_logs = [] taglists.each do |emails, pos, neg| # First find all of the messages matched by our positive tags messages = nil @@ -63,11 +63,11 @@ Puppet::Reports.register_report(:tagmail) do Puppet.info "No messages to report to %s" % emails.join(",") next else - reports << [emails, messages.collect { |m| m.to_report }.join("\n")] + matching_logs << [emails, messages.collect { |m| m.to_report }.join("\n")] end end - return reports + return matching_logs end # Load the config file |