1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #4075 from sayap/easy_install

Locate easy_install path after (optionally) creating virtualenv.
This commit is contained in:
Michael DeHaan 2013-09-15 09:29:51 -07:00
commit 00c0770f1b

View file

@ -94,7 +94,6 @@ def main():
name = module.params['name']
env = module.params['virtualenv']
easy_install = module.get_bin_path('easy_install', True, ['%s/bin' % env])
site_packages = module.params['virtualenv_site_packages']
virtualenv_command = module.params['virtualenv_command']
@ -117,6 +116,8 @@ def main():
out += out_venv
err += err_venv
easy_install = module.get_bin_path('easy_install', True, ['%s/bin' % env])
cmd = None
changed = False
installed = _is_package_installed(module, name, easy_install)