mirror of https://github.com/ansible/ansible.git
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.
25c95a96a8
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
|
7 years ago | |
---|---|---|
.. | ||
cli | 8 years ago | |
compat | 8 years ago | |
config | 10 years ago | |
errors | 8 years ago | |
executor | 7 years ago | |
galaxy | 8 years ago | |
inventory | 7 years ago | |
module_utils | 7 years ago | |
modules | 7 years ago | |
parsing | 8 years ago | |
playbook | 7 years ago | |
plugins | 7 years ago | |
template | 8 years ago | |
utils | 8 years ago | |
vars | 8 years ago | |
__init__.py | 9 years ago | |
constants.py | 8 years ago | |
release.py | 8 years ago |