From 4a823c7a27c932ca5872892775992ee396a300bd Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 5 Apr 2018 19:35:03 +0100 Subject: [PATCH] issue #164: missing cast() for _remote_file_exists(). --- 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 2cd9d30a..0efa95b4 100644 --- a/ansible_mitogen/mixins.py +++ b/ansible_mitogen/mixins.py @@ -162,7 +162,7 @@ class ActionModuleMixin(ansible.plugins.action.ActionBase): target user account. """ LOG.debug('_remote_file_exists(%r)', path) - return self.call(os.path.exists, path) + return self.call(os.path.exists, mitogen.utils.cast(path)) def _configure_module(self, module_name, module_args, task_vars=None): """