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/test/units
Adrian Likins ae3d7fb29e Fix vault reading from stdin (avoid realpath() on non-links) (#23583)
* Fix vault reading from stdin (avoid realpath() on non-links)

os.path.realpath() is used to find the target of file paths that
are symlinks so vault operations happen directly on the target.

However, in addition to resolving symlinks, realpath() also returns
a full path. when reading from stdin, vault cli uses '-' as a special
file path so VaultEditor() will replace with stdin.
realpath() was expanding '-' with the CWD to something like
'/home/user/playbooks/-' causing errors like:

        ERROR! [Errno 2] No such file or directory: u'/home/user/ansible/-'

Fix is to specialcase '-' to not use realpath()

Fixes #23567

* to_text decrypt output when writing to stdout
9 years ago
..
cli Update module_utils.six to latest (#22855) 9 years ago
contrib Remove shebangs from unit tests. 9 years ago
errors Legacy pep8 updates for setup.py and tests 9 years ago
executor Update module_utils.six to latest (#22855) 9 years ago
inventory Update module_utils.six to latest (#22855) 9 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 11 years ago
mock Update module_utils.six to latest (#22855) 9 years ago
module_utils Added Virtuozzo distribution support 9 years ago
modules nxos_vlan tweaks (#23194) 9 years ago
parsing Fix vault reading from stdin (avoid realpath() on non-links) (#23583) 9 years ago
playbook Update module_utils.six to latest (#22855) 9 years ago
plugins Ryanpineo fix ipaddr netmask with 32 cidr (#23506) 9 years ago
template Update module_utils.six to latest (#22855) 9 years ago
utils PEP 8 indent cleanup. (#20800) 9 years ago
vars Update module_utils.six to latest (#22855) 9 years ago
__init__.py Add empty-init code-smell script. (#18406) 9 years ago
conftest.py Run unit tests in isolation w/ coverage support. 9 years ago
test_constants.py Update module_utils.six to latest (#22855) 9 years ago