community.general/lib/ansible/plugins/connection
Sam Doran 5eb7f5781e
Reboot - Fix errors when using Paramiko connection (#49002)
Different connection plugins return different data when throwing exceptions. The Paramiko connection plugin does not return a text sting, which caused an exception.

The ssh connection plugin returns multi-line errors, which makes the debug logs harder to read. Only return the last line in that case in order to make the logs more readable.

When experiencing a connection failure, reset the connection.

Add reset() to paramiko_ssh

Indicate thet conection state is False when running close(). This is needed by the ensure_connected() decorator to work properly.


Co-authored-by: Matt Martz <matt@sivel.net>
2018-11-27 16:48:57 -05:00
..
__init__.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
buildah.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
chroot.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
docker.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
funcd.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
httpapi.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
iocage.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
jail.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
kubectl.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
libvirt_lxc.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
local.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
lxc.py Correct defaults in lxc and lxd connection plugin 2018-06-19 15:45:18 -04:00
lxd.py Fix mixed output from ansible and lxd when using the lxd connection plugin (#45246) 2018-09-18 19:36:51 -04:00
napalm.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
netconf.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
network_cli.py Adds hasattr checks for rpc calls used in network_cli plugins (#49173) 2018-11-26 20:59:03 -08:00
oc.py Add K8s inventory plugin (#34920) 2018-01-20 08:50:01 -05:00
paramiko_ssh.py Reboot - Fix errors when using Paramiko connection (#49002) 2018-11-27 16:48:57 -05:00
persistent.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
podman.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
psrp.py split PS wrapper and payload (CVE-2018-16859) (#49142) 2018-11-26 15:28:21 -08:00
qubes.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
saltstack.py Port ansible doc for plugins to use DOCUMENTATION variables 2017-09-11 18:34:09 -07:00
ssh.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00
winrm.py split PS wrapper and payload (CVE-2018-16859) (#49142) 2018-11-26 15:28:21 -08:00
zone.py Add a Singleton metaclass, use it with Display (#48935) 2018-11-20 17:06:51 -06:00