summaryrefslogtreecommitdiffstats
path: root/lib/puppet/application
diff options
context:
space:
mode:
authorMatt Robinson <matt@puppetlabs.com>2011-01-06 11:24:18 -0800
committerMatt Robinson <matt@puppetlabs.com>2011-01-06 11:24:18 -0800
commitdf653045aee21ae53e0e94d47e0edbdaf308fbf5 (patch)
treec3d3e4875c949d5f63ac12ced517037a9826e1be /lib/puppet/application
parent83ac3e789ddc8dbf40c93460032474870fb16c54 (diff)
downloadpuppet-df653045aee21ae53e0e94d47e0edbdaf308fbf5.tar.gz
puppet-df653045aee21ae53e0e94d47e0edbdaf308fbf5.tar.xz
puppet-df653045aee21ae53e0e94d47e0edbdaf308fbf5.zip
maint: Inspect reports should have audited = true on events
Paired-with: Jesse Wolfe
Diffstat (limited to 'lib/puppet/application')
-rw-r--r--lib/puppet/application/inspect.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/puppet/application/inspect.rb b/lib/puppet/application/inspect.rb
index c7be893c7..07ee4c317 100644
--- a/lib/puppet/application/inspect.rb
+++ b/lib/puppet/application/inspect.rb
@@ -65,7 +65,13 @@ class Puppet::Application::Inspect < Puppet::Application
next if audited_resource[name].nil?
# Skip :absent properties of :absent resources. Really, it would be nicer if the RAL returned nil for those, but it doesn't. ~JW
if name == :ensure or audited_resource[:ensure] != :absent or audited_resource[name] != :absent
- event = ral_resource.event(:previous_value => audited_resource[name], :property => name, :status => "audit", :message => "inspected value is #{audited_resource[name].inspect}")
+ event = ral_resource.event(
+ :previous_value => audited_resource[name],
+ :property => name,
+ :status => "audit",
+ :audited => true,
+ :message => "inspected value is #{audited_resource[name].inspect}"
+ )
status.add_event(event)
end
end