mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Removes expanduser in favor of type path
Removes the usage of expanduser in favor of the type 'path' for module options. Related to #12263
This commit is contained in:
@@ -305,7 +305,6 @@ def _get_pip(module, env=None, executable=None):
|
|||||||
|
|
||||||
pip = None
|
pip = None
|
||||||
if executable is not None:
|
if executable is not None:
|
||||||
executable = os.path.expanduser(executable)
|
|
||||||
if os.path.isabs(executable):
|
if os.path.isabs(executable):
|
||||||
pip = executable
|
pip = executable
|
||||||
else:
|
else:
|
||||||
@@ -402,7 +401,7 @@ def main():
|
|||||||
extra_args=dict(),
|
extra_args=dict(),
|
||||||
editable=dict(default=True, type='bool'),
|
editable=dict(default=True, type='bool'),
|
||||||
chdir=dict(type='path'),
|
chdir=dict(type='path'),
|
||||||
executable=dict(),
|
executable=dict(type='path'),
|
||||||
umask=dict(),
|
umask=dict(),
|
||||||
),
|
),
|
||||||
required_one_of=[['name', 'requirements']],
|
required_one_of=[['name', 'requirements']],
|
||||||
|
|||||||
Reference in New Issue
Block a user