Commit a2379f7
authored
(Bugfix) Grant privileges idempotency Fix
Prior to this commit, the Ubuntu 20.04 spec testing was failing two test cases at mysql_grant_spec. One of them was a simple mismatch between the expected stdout and actual stdout of the test case, and the other had to do with a misbehavior from the module at the time of granting privileges to users.
The module upon retrieving the current privileges accounted only for the original static privileges and not the dynamic privileges added in newer mysql versions, causing an error in the code that is used to condense the array of privileges that make up `ALL` into a single statement.
The code which condenses the returned privileges into a simple `ALL` has now been updated correctly trigger when dynamic privileges are in effect, avoiding this issue and ensuring idempotency.1 parent bd7c4de commit a2379f7
File tree
2 files changed
+11
-1
lines changed- lib/puppet/provider/mysql_grant
- spec/acceptance/types
2 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
70 | 80 | | |
71 | 81 | | |
72 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
464 | 464 | | |
465 | 465 | | |
466 | 466 | | |
467 | | - | |
| 467 | + | |
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
| |||
0 commit comments