We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6f1b224 + 6c896bc commit bf8c104Copy full SHA for bf8c104
lib/puppet_forge_server/backends/directory.rb
@@ -57,7 +57,7 @@ def upload(file_data)
57
58
private
59
def read_metadata(archive_path)
60
- metadata_file = read_from_archive(archive_path, %r[[^/]+/metadata\.json$])
+ metadata_file = read_from_archive(archive_path, %r[^([^/]+/)?metadata\.json$])
61
JSON.parse(metadata_file)
62
rescue => error
63
warn "Error reading from module archive #{archive_path}: #{error}"
0 commit comments