mysql_grant bugfix: on table *.* SHOW GRANT can return 'WITH MAX_QUERIES_PER_HOUR' which breaks the captures on the match
This commit is contained in:
parent
d69a5f15b3
commit
f5a78f1c5f
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ Puppet::Type.type(:mysql_grant).provide(:mysql, :parent => Puppet::Provider::Mys
|
|||
priv == 'ALL PRIVILEGES' ? 'ALL' : priv.lstrip.rstrip
|
||||
end
|
||||
# Same here, but to remove OPTION leaving just GRANT.
|
||||
options = rest.match(/WITH\s(.*)\sOPTION$/).captures if rest.include?('WITH')
|
||||
options = ['GRANT'] if rest.match(/WITH\sGRANT\sOPTION/)
|
||||
# We need to return an array of instances so capture these
|
||||
instances << new(
|
||||
:name => "#{user}@#{host}/#{table}",
|
||||
|
|
Loading…
Reference in a new issue