mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Updated user.py to redact password when test=true
This commit is contained in:
parent
2fc61763d8
commit
04c063b315
1 changed files with 1 additions and 1 deletions
|
@ -449,7 +449,7 @@ def present(name,
|
|||
ret['comment'] = ('The following user attributes are set to be '
|
||||
'changed:\n')
|
||||
for key, val in six.iteritems(changes):
|
||||
if key == 'password':
|
||||
if key == 'passwd':
|
||||
val = 'XXX-REDACTED-XXX'
|
||||
ret['comment'] += '{0}: {1}\n'.format(key, val)
|
||||
return ret
|
||||
|
|
Loading…
Add table
Reference in a new issue