From 2d7b1bd1c480d7ca040647f52f46711d7b8f2981 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Wed, 7 Oct 2015 12:19:50 -0400 Subject: [PATCH] added comment explaining chdir defaults --- lib/ansible/modules/packaging/language/pip.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/modules/packaging/language/pip.py b/lib/ansible/modules/packaging/language/pip.py index e587fad920f..a4af27ccee5 100644 --- a/lib/ansible/modules/packaging/language/pip.py +++ b/lib/ansible/modules/packaging/language/pip.py @@ -259,6 +259,7 @@ def main(): module.fail_json(msg='version is incompatible with state=latest') if chdir is None: + # this is done to avoid permissions issues with privilege escalation and virtualenvs chdir = tempfile.gettempdir() err = ''