diff options
author | Matt Robinson <matt@puppetlabs.com> | 2011-01-06 11:34:24 -0800 |
---|---|---|
committer | Matt Robinson <matt@puppetlabs.com> | 2011-01-06 11:34:24 -0800 |
commit | 0fc4b1a49791c4e67924295b172ca058f170b9cc (patch) | |
tree | 4dcf913ea235d10151ae6eb912335114ae8d2051 /lib/puppet/application/inspect.rb | |
parent | f0a34aaac713f7eb9f39195a7b96eec75322f568 (diff) | |
parent | df653045aee21ae53e0e94d47e0edbdaf308fbf5 (diff) | |
download | puppet-0fc4b1a49791c4e67924295b172ca058f170b9cc.tar.gz puppet-0fc4b1a49791c4e67924295b172ca058f170b9cc.tar.xz puppet-0fc4b1a49791c4e67924295b172ca058f170b9cc.zip |
Merge branch 'maint/2.6.next/inspect_audited_should_be_true' into 2.6.next
* maint/2.6.next/inspect_audited_should_be_true:
maint: Inspect reports should have audited = true on events
Diffstat (limited to 'lib/puppet/application/inspect.rb')
-rw-r--r-- | lib/puppet/application/inspect.rb | 8 |
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 |