Skip to content

Commit 183415e

Browse files
committed
fix frozen string error
1 parent e77a44c commit 183415e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/puppet/provider/mysql_user/mysql.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ def password_hash=(string)
172172
%r{^\*|^$}.match?(string) || %r{0x[A-F0-9]+$}.match?(string)
173173

174174
sql = "ALTER USER #{merged_name} IDENTIFIED WITH"
175-
sql << if plugin == 'caching_sha2_password'
176-
" 'caching_sha2_password' AS X'#{string[2..-1]}'"
175+
sql += if plugin == 'caching_sha2_password'
176+
" caching_sha2_password AS X'#{string[2..-1]}'"
177177
else
178-
" 'mysql_native_password' AS '#{string}'"
178+
" mysql_native_password AS '#{string}'"
179179
end
180180
self.class.mysql_caller(sql, 'system')
181181
else

0 commit comments

Comments
 (0)