Skip to content

Commit 32325f3

Browse files
authored
Merge pull request #1117 from mlk-89/master
add mysql_native_password for mariadb 10.2 in password_hash
2 parents 159d197 + 19356e7 commit 32325f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/mysql_user/mysql.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def password_hash=(string)
133133
if mysqld_version.nil?
134134
# default ... if mysqld_version does not work
135135
self.class.mysql_caller("SET PASSWORD FOR #{merged_name} = '#{string}'", 'system')
136-
elsif newer_than('mysql' => '5.7.6', 'percona' => '5.7.6')
136+
elsif newer_than('mysql' => '5.7.6', 'percona' => '5.7.6', 'mariadb' => '10.2.0')
137137
raise ArgumentError, _('Only mysql_native_password (*ABCD...XXX) hashes are supported.') unless string =~ %r{^\*|^$}
138138
self.class.mysql_caller("ALTER USER #{merged_name} IDENTIFIED WITH mysql_native_password AS '#{string}'", 'system')
139139
else

0 commit comments

Comments
 (0)