14
14
process(request.instance)
19
mod.destroy(request.key) if mod.respond_to?(:destroy)
19
25
# Process the report with each of the configured report types.
20
26
# LAK:NOTE This isn't necessarily the best design, but it's backward
21
27
# compatible and that's good enough for now.
22
28
def process(report)
29
Puppet.debug "Recieved report to process from #{report.host}"
31
Puppet.debug "Processing report from #{report.host} with processor #{mod}"
32
# We have to use a dup because we're including a module in the
39
puts detail.backtrace if Puppet[:trace]
40
Puppet.err "Report #{name} failed: #{detail}"
45
# Handle the parsing of the reports attribute.
47
# LAK:NOTE See http://snurl.com/21zf8 [groups_google_com]
48
x = Puppet[:reports].gsub(/(^\s+)|(\s+$)/, '').split(/\s*,\s*/)
23
52
return if Puppet[:reports] == "none"
25
53
reports.each do |name|
26
54
if mod = Puppet::Reports.report(name)
27
# We have to use a dup because we're including a module in the
34
puts detail.backtrace if Puppet[:trace]
35
Puppet.err "Report #{name} failed: #{detail}"
38
57
Puppet.warning "No report named '#{name}'"
43
# Handle the parsing of the reports attribute.
45
# LAK:NOTE See http://snurl.com/21zf8 [groups_google_com]
46
x = Puppet[:reports].gsub(/(^\s+)|(\s+$)/, '').split(/\s*,\s*/)