Skip to content

Commit 9b76718

Browse files
committed
strip trailing newline on mysql_caller return
1 parent 520097c commit 9b76718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/mysql_user/mysql.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def self.instances
2323
end
2424
@max_user_connections, @max_connections_per_hour, @max_queries_per_hour,
2525
@max_updates_per_hour, ssl_type, ssl_cipher, x509_issuer, x509_subject,
26-
@password, @plugin, @authentication_string = mysql_caller(query, 'regular').split(%r{\t})
26+
@password, @plugin, @authentication_string = mysql_caller(query, 'regular').chomp.split(%r{\t})
2727
@tls_options = parse_tls_options(ssl_type, ssl_cipher, x509_issuer, x509_subject)
2828
if newer_than('mariadb' => '10.1.21') && @plugin == 'ed25519'
2929
# Some auth plugins (e.g. ed25519) use authentication_string

0 commit comments

Comments
 (0)