Skip to content

Commit 506292a

Browse files
committed
Make grant autorequire user
grants that happen before a user is created cause an ERROR 1396
1 parent 3fa7050 commit 506292a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/puppet/type/mysql_grant.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
ensurable
55

66
autorequire(:file) { '/root/.my.cnf' }
7+
autorequire(:mysql_user) { self[:user] }
78

89
def initialize(*args)
910
super

0 commit comments

Comments
 (0)