Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
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