Skip to content

Commit 5695cef

Browse files
committed
Default mysqld_type should be "mysql"
Default mysqld_type return value should be "mysql" if another type is not detected. Returning nil breaks mysql 5.7.11 on Ubuntu (at least) due to the conditional used in mysql_user provider.
1 parent ee51d4c commit 5695cef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/provider/mysql.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def self.mysqld_type
2424
mysqld_version_string.scan(/mariadb/i) { return "mariadb" }
2525
mysqld_version_string.scan(/\s\(mysql/i) { return "mysql" }
2626
mysqld_version_string.scan(/\s\(percona/i) { return "percona" }
27-
nil
27+
return "mysql"
2828
end
2929

3030
def mysqld_type

0 commit comments

Comments
 (0)