Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-526

`name` attribute is not always included in a Puppet::Transaction::Event

    Details

    • Template:
    • Story Points:
      1
    • Sprint:
      Week 2013-10-30 to 2013-11-06, Week 2013-11-06 to 2013-11-13

      Description

      If a whole resource fails - i.e. there is a resource failure that is not specific to a property - the failure event (Puppet::Transaction::Event) will not have a `name` attribute. In PE 3.1.0 release candidates this was causing reports to fail to upload (because we introduced report sanitizing which checked for the `name` attribute and failed if it was not present).

      This can be reproduced by changing the owner or group of an existing file resource to an owner/group that does not exist.

      Our docs (http://docs.puppetlabs.com/puppet/3/reference/format_report.html#puppettransactionevent-1) say that `name` will be absent in inspect reports, but this is not an inspect report. The docs should be updated, but the fact that `name` is absent completely, rather than empty or nil, seems like a bug.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ethan Ethan Brown
                Reporter:
                ruth Ruth Linehan
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support