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.
1 parent 6f1b224 commit 6c896bcCopy full SHA for 6c896bc
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