diff --git a/ansible_mitogen/mixins.py b/ansible_mitogen/mixins.py index 2ebffb84..faadbc15 100644 --- a/ansible_mitogen/mixins.py +++ b/ansible_mitogen/mixins.py @@ -279,7 +279,7 @@ class ActionModuleMixin(ansible.plugins.action.ActionBase): # ~/.ansible -> /home/dmw/.ansible return os.path.join(self._connection.homedir, path[2:]) # ~root/.ansible -> /root/.ansible - return self._connection.get_chain(login=(not sudoable)).call( + return self._connection.get_chain(use_login=(not sudoable)).call( os.path.expanduser, mitogen.utils.cast(path), )