Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: BOLT 1.2.0
    • Component/s: None
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Bolt now includes a helper class for writing python tasks. See the docs for details.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Create a core python library for tasks. Users who use the library should be able to write a single function that accepts parsed params and returns a dict. Targeting Python 2.7+.

      Interface:

      • Users extends class with a single function that performs the task. params input and output are dicts.
      • Users adds if name == _main_ TaskClass.run()
      • Any unhandled errors are caught and turned into an error response
      • Base exception class to make generating a proper error easy
      • Example showing proper unit testing.

      Add notes about this module to Bolt docs and include in the Puppetfile.

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                alex Alex Dreyer
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: