From e27b4c2ae40681b2c2ec196cd7d853614b265abd Mon Sep 17 00:00:00 2001 From: Tim Rupp Date: Mon, 6 Mar 2017 13:41:11 -0800 Subject: [PATCH] Removes expanduser in favor of type path Removes the usage of expanduser in favor of the type 'path' for module options. Related to #12263 --- lib/ansible/modules/packaging/language/pip.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ansible/modules/packaging/language/pip.py b/lib/ansible/modules/packaging/language/pip.py index f72274cbfa4..55f2e6e1e5c 100644 --- a/lib/ansible/modules/packaging/language/pip.py +++ b/lib/ansible/modules/packaging/language/pip.py @@ -305,7 +305,6 @@ def _get_pip(module, env=None, executable=None): pip = None if executable is not None: - executable = os.path.expanduser(executable) if os.path.isabs(executable): pip = executable else: @@ -402,7 +401,7 @@ def main(): extra_args=dict(), editable=dict(default=True, type='bool'), chdir=dict(type='path'), - executable=dict(), + executable=dict(type='path'), umask=dict(), ), required_one_of=[['name', 'requirements']],