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

Fix permission error when using easy_install through sudo

Same as b2542bff72.
This commit is contained in:
Veeti Paananen 2013-12-13 00:12:24 +02:00
parent 2df4e807db
commit fa90f31cc8

View file

@ -19,6 +19,7 @@
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
import tempfile
import os.path
DOCUMENTATION = '''
@ -151,6 +152,7 @@ def main():
command = '%s %s' % (virtualenv, env)
if site_packages:
command += ' --system-site-packages'
os.chdir(tempfile.gettempdir())
rc_venv, out_venv, err_venv = module.run_command(command)
rc += rc_venv