Merge pull request #31558 from cachedout/ensure_ssh_installed

Don't stacktrace if ssh binary is not installed with salt-ssh
This commit is contained in:
Mike Place 2016-02-29 15:15:44 -07:00
commit dbf6e0786c

View file

@ -164,6 +164,8 @@ class SSH(object):
else:
self.event = None
self.opts = opts
if not salt.utils.which('ssh'):
raise salt.exceptions.SaltSystemExit('No ssh binary found in path -- ssh must be installed for salt-ssh to run. Exiting.')
self.opts['_ssh_version'] = ssh_version()
self.tgt_type = self.opts['selected_target_option'] \
if self.opts['selected_target_option'] else 'glob'