Updated user.py to redact password when test=true

This commit is contained in:
Art Schneider 2016-08-18 12:00:09 -06:00 committed by rallytime
parent 2fc61763d8
commit 04c063b315

View file

@ -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