We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 680627c commit 859b55dCopy full SHA for 859b55d
lib/puppet/provider/mysql_grant/mysql.rb
@@ -30,7 +30,7 @@ def self.instances
30
if match = munged_grant.match(/^GRANT\s(.+)\sON\s(.+)\sTO\s(.*)@(.*?)(\s.*)$/)
31
privileges, table, user, host, rest = match.captures
32
# split on ',' if it is not a non-'('-containing string followed by a
33
- # closing parenthesis ')'-char - e.g. only split comma separated elements not in
+ # closing parenthesis ')'-char - e.g. only split comma separated elements not in
34
# parentheses
35
stripped_privileges = privileges.strip.split(/\s*,\s*(?![^(]*\))/).map{ |priv|
36
# split and sort the column_privileges in the parentheses and rejoin
0 commit comments