Skip to content

Commit 547b78a

Browse files
committed
fix
1 parent cc90ab0 commit 547b78a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/parser/functions/load_module_metadata.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module Puppet::Parser::Functions
2424

2525
metadata_exists = File.exists?(metadata_json) # rubocop:disable Lint/DeprecatedClassMethods : Changing to .exist? breaks the code
2626
if metadata_exists
27-
if Puppet::Util::Package.versioncmp(Puppet.version, '8.0.0') < 0
27+
if Puppet::Util::Package.versioncmp(Puppet.version, '8.0.0').negative?
2828
metadata = PSON.load(File.read(metadata_json))
2929
else
3030
metadata = JSON.parse(File.read(metadata_json))

0 commit comments

Comments
 (0)