need to get around sshpass check here somehow: https://github.com/ansible/ansible/blob/v2.10.0/lib/ansible/plugins/connection/ssh.py#L577
This commit is contained in:
parent
583f540889
commit
6ac9168d55
|
@ -59,6 +59,8 @@ import mitogen.utils
|
|||
import ansible
|
||||
import ansible.constants as C
|
||||
import ansible.errors
|
||||
# required for mocking sshpass check on ansible's side
|
||||
from ansible.plugins.connection import ssh
|
||||
import ansible_mitogen.logging
|
||||
import ansible_mitogen.services
|
||||
|
||||
|
@ -672,6 +674,12 @@ class MuxProcess(object):
|
|||
self._setup_master()
|
||||
self._setup_services()
|
||||
|
||||
# mock checking if sshpass exists; mitogen doesn't need it to ssh
|
||||
# TODO: confirm this
|
||||
# TODO TODO: this isn't working
|
||||
ssh.SSHPASS_AVAILABLE = True
|
||||
import epdb; epdb.set_trace()
|
||||
|
||||
try:
|
||||
# Let the parent know our listening socket is ready.
|
||||
mitogen.core.io_op(self.model.child_sock.send, b('1'))
|
||||
|
|
Loading…
Reference in New Issue