ansible 2.10 renamed ping module to reflect legacy builtin collection

This commit is contained in:
Steven Robertson 2020-09-06 13:44:01 -07:00
parent 55c5a274cc
commit f994807d74
1 changed files with 1 additions and 1 deletions

View File

@ -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()