Apply fix to ssh init file that was there before merge

This commit is contained in:
rallytime 2018-08-09 09:53:09 -04:00
parent 7e1f7915e4
commit 02670969d0
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -445,7 +445,7 @@ class SSH(object):
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'):
if (ret[host].get('stderr') or '').count('Permission denied'):
target = self.targets[host]
# permission denied, attempt to auto deploy ssh key
print(('Permission denied for host {0}, do you want to deploy '