Jira (PUP-11539) Directory names returned as task names when listing tasks from a module

3 views
Skip to first unread message

Romain Tartière

unread,
May 11, 2022, 4:43:01 AM5/11/22
to puppe...@googlegroups.com
Romain Tartière created an issue
 
Puppet / Bug PUP-11539
Directory names returned as task names when listing tasks from a module
Issue Type: Bug Bug
Assignee: Unassigned
Components: Modules
Created: 2022/05/11 1:42 AM
Priority: Normal Normal
Reporter: Romain Tartière

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

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages