From 1ffadbcc80ccda1fefef18333e8e9aac44cfd6fa Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 6 Apr 2016 15:58:49 -0400 Subject: [PATCH] Make the 'path' param type also use abspath on the value --- lib/ansible/module_utils/basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 1af0bdb01a..55902ffa36 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -1376,7 +1376,7 @@ class AnsibleModule(object): def _check_type_path(self, value): value = self._check_type_str(value) - return os.path.expanduser(os.path.expandvars(value)) + return os.path.abspath(os.path.expanduser(os.path.expandvars(value))) def _check_type_raw(self, value): return value