From f994807d744b6a7c092df8162ad9ab9d41cfb214 Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Sun, 6 Sep 2020 13:44:01 -0700 Subject: [PATCH] ansible 2.10 renamed ping module to reflect legacy builtin collection --- ansible_mitogen/mixins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible_mitogen/mixins.py b/ansible_mitogen/mixins.py index 7672618d..7e7a3ff0 100644 --- a/ansible_mitogen/mixins.py +++ b/ansible_mitogen/mixins.py @@ -375,7 +375,7 @@ class ActionModuleMixin(ansible.plugins.action.ActionBase): # wait_for_connection, the `ping` test from Ansible won't pass because we lost connection # clearing out context forces a reconnect # see https://github.com/dw/mitogen/issues/655 and Ansible's `wait_for_connection` module for more info - if module_name == 'ping' and type(self).__name__ == 'wait_for_connection': + if module_name == 'ansible.legacy.ping' and type(self).__name__ == 'wait_for_connection': self._connection.context = None self._connection._connect()