Uploaded image for project: 'Puppet Task Runner'
  1. Puppet Task Runner
  2. BOLT-1125

Add info about what was run to Result or ResultSet

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: BOLT 1.15.0
    • Component/s: None
    • Labels:
    • Template:
    • Team:
      Bolt
    • Sprint:
      Bolt Kanban
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Adds information about the action that generated a result object in the json output of bolt.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Currently, the Result and ResultSet types don't include any fields indicating what they are the result of. That makes it difficult to write any generic functions to operate on results, for instance to report them to an external source.

      One of those types should include an appropriate field or fields to determine what kind of thing was run and what the
      instance was.

      Proposal:
      The Result object should include two new fields:
      type This should be the type of action command, task, file, script, apply etc
      object This should be what the aciton was, the script name, the command, the task name. It should be null for apply
      Result.initialize should accept type and object as new kwargs.

      Caveats:
      This will not include enough information to rerun the action.
      This duplicates information by including it in each Result putting it on the ResultSet would make it more array like.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                alex Alex Dreyer
                Reporter:
                nick Nick Lewis
              • Votes:
                2 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: