mitogen
mitogen copied to clipboard
Fix loading of ssh connection class
What?
Fix loading ssh connection class. get_with_context returns a tuple (https://github.com/ansible/ansible/blob/952ee88f33de4d49ff5f7bd4bec3431a4b0fdc78/lib/ansible/plugins/loader.py#L895) but we were not treating it as a tuple
Fixes #766 #662 #342
@moreati any way we can get this accepted?
LGTM
Notes to self
ansible.plugins.loader.PluginLoader.get_with_context()was added in https://github.com/ansible/ansible/commit/984216f52e76b904e5b0fa0fb956ab4f1e0a7751, first tagged in v2.10.0b1. It returns anamedtuplecontaining the loader objectansible.plugins.loader.PluginLoader.get()call this method, then returns the loader object.
@moreati For reference see https://github.com/markafarrell/mitogen-issue-766-repro for instructions for reproducing the issue