Merge pull request #38148 from whiteinge/no-ssh-async-client

Remove ssh_async from NetapiClient clients; it is not implemented
This commit is contained in:
Mike Place 2016-12-09 11:49:41 -07:00 committed by GitHub
commit 7ccbedd2cc

View file

@ -132,17 +132,6 @@ class NetapiClient(object):
ssh_client = salt.client.ssh.client.SSHClient(mopts=self.opts)
return ssh_client.cmd_sync(kwargs)
def ssh_async(self, fun, timeout=None, **kwargs):
'''
Run salt-ssh commands asynchronously
Wraps :py:meth:`salt.client.ssh.client.SSHClient.cmd_async`.
:return: Returns the JID to check for results on
'''
kwargs['fun'] = fun
return salt.client.ssh.client.cmd_async(kwargs)
def runner(self, fun, timeout=None, **kwargs):
'''
Run `runner modules <all-salt.runners>` synchronously