mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #6757 from viraptor/dont-show-debconf-password
Don't show debconf passwords
This commit is contained in:
commit
8612a01e3b
@ -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.'
|
||||
|
Loading…
Reference in New Issue
Block a user