Skip to content

Commit

Permalink
Fixed comment in x509_certificate normalize_dn according to the imple…
Browse files Browse the repository at this point in the history
…mentation
  • Loading branch information
minimum2scp committed Jun 21, 2021
1 parent 527437a commit cbaa9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/serverspec/type/x509_certificate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def parse_dates_str_to_map(dates_str)
# Normalize output between openssl versions.
def normalize_dn(dn)
return dn unless dn.start_with?('/')
# normalize openssl >= 1.1 to < 1.1 output
# normalize openssl < 1.1 to >= 1.1 output
dn[1..-1].split('/').join(', ').gsub('=', ' = ')
end
end
Expand Down

0 comments on commit cbaa9f6

Please sign in to comment.