Make the 'path' param type also use abspath on the value

pull/4420/head
James Cammarata 2016-04-06 15:58:49 -04:00
parent 77e3dc9e6a
commit 1ffadbcc80
1 changed files with 1 additions and 1 deletions

View File

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