issue #339: whoops, actually wire up new connection method.

pull/350/head
David Wilson 6 years ago
parent b964e647d2
commit 34a9f67115

@ -126,6 +126,17 @@ def _connect_lxc(spec):
} }
def _connect_lxd(spec):
return {
'method': 'lxd',
'kwargs': {
'container': spec['remote_addr'],
'python_path': spec['python_path'],
'connect_timeout': spec['ansible_ssh_timeout'] or spec['timeout'],
}
}
def _connect_machinectl(spec): def _connect_machinectl(spec):
return _connect_setns(dict(spec, mitogen_kind='machinectl')) return _connect_setns(dict(spec, mitogen_kind='machinectl'))
@ -236,7 +247,7 @@ CONNECTION_METHOD = {
'jail': _connect_jail, 'jail': _connect_jail,
'local': _connect_local, 'local': _connect_local,
'lxc': _connect_lxc, 'lxc': _connect_lxc,
'lxd': _connect_lxc, 'lxd': _connect_lxd,
'machinectl': _connect_machinectl, 'machinectl': _connect_machinectl,
'setns': _connect_setns, 'setns': _connect_setns,
'ssh': _connect_ssh, 'ssh': _connect_ssh,

Loading…
Cancel
Save