module-puppetlabs-mysql/lib/puppet/provider
Maxence Dunnewind 46065c4095 The old regex requires something after the 'host' part. Fix this.
Old regex is : /^GRANT\s(.+)\sON\s(.+)\sTO\s(.*)@(.*?)(\s.*)$/ . The
last part (\s.*)$ means "a space followed by anything". The issue is
that when user has no GRANT privileges, the "SHOW GRANTS FOR #{user_string}" returns
"GRANT SELECT ON `database`.* TO 'user'@'%'" which does not match (\s.*)$ .
This small patch fixes this making last bloc optional (thanks to '?').
2014-10-27 16:41:33 +01:00
..
mysql_database mysql_database: prevent syntax error with collate=>'binary' 2014-09-15 23:22:59 -06:00
mysql_grant The old regex requires something after the 'host' part. Fix this. 2014-10-27 16:41:33 +01:00
mysql_user defaults_file methods removed from every provider (old & new) and moved 2013-11-16 19:09:09 +01:00
mysql.rb Bugfix for mysql_grant provider when we try to grant remove privileges 2014-01-20 23:56:26 +11:00