Merge pull request #6757 from viraptor/dont-show-debconf-password

Don't show debconf passwords
This commit is contained in:
Thomas S Hatch 2013-08-16 20:54:26 -07:00
commit 8612a01e3b

View File

@ -150,7 +150,10 @@ def set(name, data):
ret['changes'][key] = ('New value: {0}').format(args['value'])
else:
if __salt__['debconf.set'](name, key, args['type'], args['value']):
ret['changes'][key] = ('{0}').format(args['value'])
if args['type'] == 'password':
ret['changes'][key] = '(password hidden)'
else:
ret['changes'][key] = ('{0}').format(args['value'])
else:
ret['result'] = False
ret['comment'] = 'Some settings failed to be applied.'