Skip to content

Commit f333263

Browse files
committed
Add ability to use hex hash with caching_sha2_password plugin
1 parent e185638 commit f333263

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/functions/mysql/password.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
return_type 'Variant[String, Sensitive[String]]'
2020
end
2121

22-
def password(password, sensitive = false) # rubocop:disable Style/OptionalBooleanParameter
22+
def password(password, sensitive = false)
2323
password = password.unwrap if password.is_a?(Puppet::Pops::Types::PSensitiveType::Sensitive)
2424

2525
result_string = if %r{\*[A-F0-9]{40}$}.match?(password) or %r{0x[A-F0-9]+$}.match?(password)

0 commit comments

Comments
 (0)