Skip to content

Commit c039dba

Browse files
author
Michael Power
committed
Change latest/current comparison to account for chains
When certificate chains are being compared, the 'latest' one can have several SHA1 checksums in them, which the code will flatten and join into a single string. This gets compared against what is in the keystore, which only has a single SHA1 checksum in it. This results in a failed check every time. Instead of checking for equality between those two values, we can just check to see if 'latest' contains 'current'.
1 parent bb74049 commit c039dba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/type/java_ks.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def insync?(is)
3333
return true if is == :absent
3434
when :latest
3535
unless is == :absent
36-
return true if provider.latest == provider.current
36+
return true if provider.latest.include? provider.current
3737
end
3838
end
3939
end

0 commit comments

Comments
 (0)