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 c4779fa commit 9fb4972Copy full SHA for 9fb4972
lib/puppet/provider/java_ks/keytool.rb
@@ -173,10 +173,10 @@ def exists?
173
174
# Extracts the fingerprints of a given output
175
def extract_fingerprint(output)
176
- fps = Array.new
177
- output.scan(%r{^Certificate fingerprints:(.*?)Signature?}m).flatten.each { |certblock|
+ fps = []
+ output.scan(%r{^Certificate fingerprints:(.*?)Signature?}m).flatten.each do |certblock|
178
fps.push(certblock.scan(%r{^\s+\S+:\s+(\S+)}m))
179
- }
+ end
180
fps.flatten.sort.join('/')
181
end
182
0 commit comments