Commit 9734131
committed
(MODULES-3355) Fix Role Name Collisions
If sqlserver::role is specified more than one for the same role
non-unique titles will be generated for the sqlserver_tsql that
will handle the operations. This is likely to happen if setting
up heira configs like this:
'sqlserver::role':
‘User_1’:
role: db_owner
database: FooBar
instance: MSSQLSERVER
members:
- ‘User_1’
type: 'DATABASE'
‘User_2’:
role: db_owner
database: Wakka
instance: MSSQLSERVER
members:
- ‘User_2’
type: 'DATABASE'
This fix introduces the database name into the title created for
the sqlserver_tsql statements so that it is unique.1 parent 9f7004e commit 9734131
2 files changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | | - | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
0 commit comments