Skip to content

Commit c94c4db

Browse files
author
Thomas Tischner
committed
Test the test :D
1 parent 1159e4b commit c94c4db

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
@@ -126,7 +126,7 @@ def password_hash=(string)
126126
# default ... if mysqld_version does not work
127127
self.class.mysql_caller("SET PASSWORD FOR #{merged_name} = '#{string}'", 'system')
128128
elsif newer_than('mysql' => '5.7.6', 'percona' => '5.7.6')
129-
raise ArgumentError, _('Only mysql_native_password (*ABCD...XXX) hashes are supported.') unless string =~ %r{^\*|^$}
129+
raise ArgumentError, _('Only mysql_native_password (*ABCD...XXX) hashes are supported.') unless string =~ %r{^\*}
130130
self.class.mysql_caller("ALTER USER #{merged_name} IDENTIFIED WITH mysql_native_password AS '#{string}'", 'system')
131131
else
132132
self.class.mysql_caller("SET PASSWORD FOR #{merged_name} = '#{string}'", 'system')

0 commit comments

Comments
 (0)