Puppet fails to find metadata file if there are multiple top-level files/dirs
Steps to reproduce:
wget https://forge.puppet.com/v3/files/marcel-passenger-0.5.0.tar.gz pulp-admin puppet repo create --repo-id marcelpuppet pulp-admin puppet repo uploads upload --file marcel-passenger-0.5.0.tar.gz --repo-id marcelpuppet pulp-admin puppet repo list
Task Failed Could not find metadata file inside Puppet module
Fixed bug where path wasn't used and module_dir was set to non-directory
There were two bugs here at play. First the code wasn't using the full path including extraction_dir when checking if the module file was a directory and secondly, the loop meant that module_dir could be set to a file if it didn't find a directory.
Also, fixed some flake8 errors.
#5 Updated by daviddavis almost 3 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulp_puppet:e1123708f173e0579048927dd206013878c6f78a.
Please register to edit this issue