mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
Make the 'path' param type also use abspath on the value
This commit is contained in:
@@ -1376,7 +1376,7 @@ class AnsibleModule(object):
|
|||||||
|
|
||||||
def _check_type_path(self, value):
|
def _check_type_path(self, value):
|
||||||
value = self._check_type_str(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):
|
def _check_type_raw(self, value):
|
||||||
return value
|
return value
|
||||||
|
|||||||
Reference in New Issue
Block a user