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.
This commit is contained in:
ih84ds 2016-04-14 17:55:22 -05:00
parent ee51d4c442
commit 5695cef4a6

View file

@ -24,7 +24,7 @@ class Puppet::Provider::Mysql < Puppet::Provider
mysqld_version_string.scan(/mariadb/i) { return "mariadb" }
mysqld_version_string.scan(/\s\(mysql/i) { return "mysql" }
mysqld_version_string.scan(/\s\(percona/i) { return "percona" }
nil
return "mysql"
end
def mysqld_type