mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
supress a stack trace to show clean ssh error
This commit is contained in:
parent
9fbfa282fa
commit
11864c31b7
1 changed files with 1 additions and 1 deletions
|
@ -274,7 +274,7 @@ class SSH(object):
|
|||
'''
|
||||
if not isinstance(ret[host], dict) or self.opts.get('ssh_key_deploy'):
|
||||
target = self.targets[host]
|
||||
if 'passwd' in target or self.opts['ssh_passwd']:
|
||||
if target.get('passwd', False) or self.opts['ssh_passwd']:
|
||||
self._key_deploy_run(host, target, False)
|
||||
return ret
|
||||
if ret[host].get('stderr', '').count('Permission denied'):
|
||||
|
|
Loading…
Add table
Reference in a new issue