community.general/lib/ansible
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
2017-04-18 13:09:02 -04:00
..
cli Add ansible executable path (argv[0]) to --version (#22262) 2017-04-03 14:01:59 -04:00
compat Update module_utils.six to latest (#22855) 2017-03-23 13:35:05 -07:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors E501 fixes (#22879) 2017-03-22 20:50:28 -05:00
executor tolerate 'batch' systems that mess with stdin (#23596) 2017-04-18 11:39:49 -04:00
galaxy Update module_utils.six to latest (#22855) 2017-03-23 13:35:05 -07:00
inventory correctly get all hosts in 'all' 2017-04-07 13:17:03 -04:00
module_utils Make warning logs consistent (#23666) 2017-04-18 21:59:38 +05:30
modules Make warning logs consistent (#23666) 2017-04-18 21:59:38 +05:30
parsing Fix vault reading from stdin (avoid realpath() on non-links) (#23583) 2017-04-18 13:09:02 -04:00
playbook Allow specifying timeout on a per-host basis 2017-04-17 15:21:49 -04:00
plugins When become_method is su, self._play_context.prompt is a function. Fixes #23689 2017-04-18 13:01:18 -04:00
template centralize ansible_managed and other template vars 2017-04-13 11:03:11 -04:00
utils eapi & nxapi: Document validate_certs (#23305) 2017-04-05 16:37:40 +01:00
vars Revert "keep ansible_local as top level var, always present" 2017-04-04 16:30:57 -04:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Ansible 2.3 feature support for dellos6. (#23084) 2017-03-30 15:26:32 +02:00
release.py Bumping devel version to 2.4.0 2017-03-15 09:42:01 -05:00