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

Sub-directory names returned as task names when listing tasks from a module

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • PUP 7.18.0
    • Modules
    • Phoenix
    • 1
    • Phoenix 2022-06-22, Phoenix 2022-07-06
    • Needs Assessment
    • Bug Fix
    • The "puppet/v3/tasks" REST API only returns files in the "tasks" directory of each module and no longer includes the names of subdirectories.
    • Needs Assessment

    Description

      Puppet Version: 7
      Puppet Server Version: 7
      OS Name/Version: any

      When querying puppetserver for a list of tasks, if a module has a sub-directory in its 'tasks' directory, this sub-directory name is incorrectly returned as an available task of the module.

      Desired Behavior: The API should only return the actual tasks names{}{}

      Actual Behavior:

      Create a sub-directory in the tasks directory of a module (mkdir /etc/puppetlabs/code/environments/production/site-modules/profile/tasks/foo/) and query using the API endpoint GET /puppet/v3/tasks?environment=production

      A profile::foo task is incorrectly listed

      Attachments

        Activity

          People

            josh Josh Cooper
            smortex Romain Tartière
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support