We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc90ab0 commit 547b78aCopy full SHA for 547b78a
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
- if Puppet::Util::Package.versioncmp(Puppet.version, '8.0.0') < 0
+ if Puppet::Util::Package.versioncmp(Puppet.version, '8.0.0').negative?
28
metadata = PSON.load(File.read(metadata_json))
29
else
30
metadata = JSON.parse(File.read(metadata_json))
0 commit comments