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

Puppet rejects tasks with valid non-Data types like 'Hash'

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • PUP 5.4.0
    • PUP 5.4.0
    • None
    • None
    • Platform Core
    • Needs Assessment
    • Bug Fix
    • Previously bolt rejected tasks that used non-Data types in parameters metadata. Now non-Data types are allowed.
    • Needs Assessment

    Description

      Puppet Version: Bolt

      Puppet Tasks can only accept parameters as JSON. However it should be valid in task metadata to use puppet types that may be assignable to JSON like bare Hash. Puppet seems to be rejecting these

      Error: Failed to load metadata for task example_tasks::hash_get: Task initializer has wrong type, entry 'parameters' entry 'data' entry 'type' expects a Type[Data] value, got Type[Hash] in /Users/adreyer/src/puppetlabs/puppetconf_modules/example_tasks/tasks/hash_get.json
      

      Desired Behavior:

      Task metadata that gives parameters types that may be assignable to Data should be considered valid.

      Actual Behavior:

      Puppet refuses to load tasks that use types which are not assignable to Data like Hash

      Attachments

        Activity

          People

            Unassigned Unassigned
            alex Alex Dreyer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support