Commit e44bd03
committed
fix: ensure single space before TYPE, ROLE, and correctly format those values
Cause: The recent refactoring for Ansible 2.19 altered the whitespacing before
the TYPE and ROLE values. In addition, the TYPE and ROLE values are a single
string, not a comma delimited list. We did not have any tests for these
values, so we did not catch the error in the refactoring.
Consequence: The role would incorrectly format the TYPE and ROLE values.
Fix: Use correct Jinja formatting for the TYPE and ROLE values, and the
solaris values. Ensure that the TYPE and ROLE values will be a single string.
Result: The sudoers file is correctly formatted.
Signed-off-by: Rich Megginson <[email protected]>1 parent 76ee3de commit e44bd03
File tree
3 files changed
+15
-10
lines changed- templates
- tests
- files
3 files changed
+15
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
69 | 69 | | |
70 | | - | |
71 | | - | |
| 70 | + | |
| 71 | + | |
72 | 72 | | |
73 | | - | |
74 | | - | |
| 73 | + | |
| 74 | + | |
75 | 75 | | |
76 | | - | |
77 | | - | |
| 76 | + | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
74 | 78 | | |
75 | | - | |
| 79 | + | |
| 80 | + | |
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
| |||
0 commit comments