mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
better change reporting for postgres_user groups
This commit is contained in:
parent
2ae7ada3c9
commit
ffffede412
@ -191,8 +191,9 @@ def present(name,
|
||||
if isinstance(groups, (six.string_types, six.text_type)):
|
||||
lgroups = lgroups.split(',')
|
||||
if isinstance(lgroups, list):
|
||||
if [a for a in lgroups if a not in user_groups]:
|
||||
update = True
|
||||
missing_groups = [a for a in lgroups if a not in user_groups]
|
||||
if missing_groups:
|
||||
update['groups'] = missing_groups
|
||||
|
||||
if mode == 'create' or (mode == 'update' and update):
|
||||
if __opts__['test']:
|
||||
|
Loading…
Reference in New Issue
Block a user