You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib/ansible
Toshio Kuratomi 25c95a96a8 Fix for ansiballz filenames conflicting with python stdlib modules
The AnsiBallZ wrapper is transferred to the remote machine with
a filename similar to the Ansible-module it runs.  For modules like copy
and tempfile, this can end up conflicting with stdlib modules on the
remote machine depending on how python is setup there.  We have a little
bit of code in the wrapper to deal with this by removing the path that
the ansible module resides in from sys.path.

On MacOSX, that code was having a problem.  The path the module ends up
in included a symlinked directory so we were looking for a path in
sys.path but we had to look for the unsymlinked path instead.

Fix that by using os.path.realpath() instead of os.path.abspath()

(cherry picked from commit 15902f2496)
7 years ago
..
cli Fix ansible ad-hoc to respect ANSIBLE_STDOUT_CALLBACK (#26098) 8 years ago
compat Fix typo when choosing KqueueSelector 8 years ago
config Making the switch to v2 10 years ago
errors moved to exceptions for basic skip/fails 8 years ago
executor Fix for ansiballz filenames conflicting with python stdlib modules 7 years ago
galaxy fix ansible galaxy file mangling (#23703) 8 years ago
inventory Fix performance issue while match pattern in large inventory list 7 years ago
module_utils Fix for nonutf8 filenames causing crashes when setting permissions 7 years ago
modules [Backport] Multiple fixes for vmware_guest_facts (#27464) 7 years ago
parsing Fix vaulted vars templating 8 years ago
playbook include_role handlers bug fix (#26335) 7 years ago
plugins make random_choice more error resilient (#27380) 7 years ago
template Fixing security issue with lookup returns not tainting the jinja2 environment 8 years ago
utils eapi & nxapi: Document validate_certs (#23305) (#23307) 8 years ago
vars backported delegation/facts fix, see #25880 8 years ago
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 9 years ago
constants.py Fixing security issue with lookup returns not tainting the jinja2 environment 8 years ago
release.py New release v2.3.2.0-0.1.rc1 8 years ago