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

Type information not available in plans.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: BOLT 1.15.0
    • Fix Version/s: BOLT 1.20.0
    • Component/s: None
    • Template:
    • Sprint:
      Bolt Kanban
    • Method Found:
      Needs Assessment
    • Release Notes:
      New Feature
    • Release Notes Summary:
      A new `to_data` method is available for plan result objects that provide a hash representation of the object.
    • QA Risk Assessment:
      Needs Assessment

      Description

      The use of type to refer to the type of action that created a result object is unable to be exposed as an attribute on the result object since type is used elsewhere in Puppet.

      Solution:
      1. Rename this key to action and expose it with a method, the values should remain the same.
      2. Add a to_data method to all bolt datatypes that return a hash or array equivalent of their json output. This will make the usecase which triggered the initial ticket, the ability to pass the result from one action directly to a task easier. This may or may not include renaming type.

      Note the "target" in a Result should be the name not the full target hash. Adding to_data to Target is out of scope

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                cas.donoghue Cas Donoghue
                Reporter:
                cbarker Chris Barker
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: