mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix user.present state reporting for groups when remove_groups=false
This commit is contained in:
parent
67692f868c
commit
1f818c832e
1 changed files with 2 additions and 0 deletions
|
@ -464,6 +464,8 @@ def present(name,
|
|||
for key, val in iteritems(changes):
|
||||
if key == 'password':
|
||||
val = 'XXX-REDACTED-XXX'
|
||||
elif key == 'group' and not remove_groups:
|
||||
key = 'ensure groups'
|
||||
ret['comment'] += u'{0}: {1}\n'.format(key, val)
|
||||
return ret
|
||||
# The user is present
|
||||
|
|
Loading…
Add table
Reference in a new issue