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 fb81481 commit e61b71cCopy full SHA for e61b71c
lib/puppet/parser/functions/load_module_metadata.rb
@@ -24,7 +24,7 @@ module Puppet::Parser::Functions
24
25
metadata_exists = File.exists?(metadata_json) # rubocop:disable Lint/DeprecatedClassMethods : Changing to .exist? breaks the code
26
if metadata_exists
27
- metadata = JSON.load(File.read(metadata_json))
+ metadata = JSON.parse(File.read(metadata_json))
28
else
29
metadata = {}
30
raise(Puppet::ParseError, "load_module_metadata(): No metadata.json file for module #{mod}") unless allow_empty_metadata
0 commit comments