puppetlabs/puppetdb — pull request #615 by shakedown (2013-08-20 01:33:22+00:00)
Title: (PE-1300) Don't ignore failed resource statuses

Prior to this commit, the PuppetDB report processor/terminus
ignored 'failed' resource statuses unless they had events.
This commit changes the processor so it no longer ignores them
and instead fabricates an appropriate event to attach to
the 'failed' resource status.

Ideally, Puppet should be including resource events even for
'failed' statuses, but until then, and to support backwards
compatibility, we can just fabricate the events.