Merge pull request #32561 from gtmanfred/user_passwords

redact passwords and hashes from user.present updates
This commit is contained in:
Nicole Thomas 2016-04-14 09:48:59 -06:00
commit 027b502335

View file

@ -516,7 +516,10 @@ def present(name,
if 'shadow.info' in __salt__:
for key in spost:
if lshad[key] != spost[key]:
ret['changes'][key] = spost[key]
if key == 'passwd':
ret['changes'][key] = 'XXX-REDACTED-XXX'
else:
ret['changes'][key] = spost[key]
if __grains__['kernel'] == 'OpenBSD':
if lcpre != lcpost:
ret['changes']['loginclass'] = lcpost