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

This reverts commit 1ffadbcc80.

Some modules seem to have path listed for things that are "commands"  --
something that may be a path to a command or a bare command that should
be looked up in PATH.  With this change, if they were formerly looked up
inPATH they are now being made into an absolute path in the cwd.
Reverting this until we can think more about whether to do this and
change those modules to not use path for those parameters.
This commit is contained in:
Toshio Kuratomi 2016-04-06 14:07:48 -07:00
parent 1ffadbcc80
commit a57a32adcc

View file

@ -1376,7 +1376,7 @@ class AnsibleModule(object):
def _check_type_path(self, value):
value = self._check_type_str(value)
return os.path.abspath(os.path.expanduser(os.path.expandvars(value)))
return os.path.expanduser(os.path.expandvars(value))
def _check_type_raw(self, value):
return value