We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f333263 commit 8b598f6Copy full SHA for 8b598f6
lib/puppet/provider/mysql_user/mysql.rb
@@ -25,6 +25,8 @@ def self.instances
25
x509_issuer, x509_subject, @password, @plugin, @authentication_string = mysql_caller(query, 'regular').chomp.split(%r{\t})
26
27
if @plugin == 'caching_sha2_password'
28
+ # Escaping all single quotes to prevent errors when password generated it
29
+ @password = @password.gsub("'"){"\\'"}
30
@password = mysql_caller("SELECT CONCAT('0x',HEX('#{@password}'))", 'regular').chomp
31
end
32
0 commit comments