Skip to content

Commit 2c463fc

Browse files
committed
Merge pull request #540 from jsosic/patch-1
Fix problem with GRANT not recognizing backslash
2 parents 4664352 + 3566723 commit 2c463fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/puppet/provider/mysql_grant/mysql.rb

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ def self.instances
3636
end
3737
# Same here, but to remove OPTION leaving just GRANT.
3838
options = ['GRANT'] if rest.match(/WITH\sGRANT\sOPTION/)
39+
# fix double backslash that MySQL prints, so resources match
40+
table.gsub!("\\\\", "\\")
3941
# We need to return an array of instances so capture these
4042
instances << new(
4143
:name => "#{user}@#{host}/#{table}",

0 commit comments

Comments
 (0)