community.general/lib/ansible
Ganesh Nalawade 90cd87f950
Fix debug logs failing with persistent connection (#33049)
* Fix debug logs failing with persistent connection

Fixes #33047

*  As debug logs are written on stdout, it interrupts
   the communication between ansible-connection(background)
   process and main process. To avoid this add a string similar
   to exactly identify the response string.

*  Remove unwanted code in ansible-connection

*  Fix review comments

* Fix spurious log emitted on ansible-connection stdout issue

*  ansible-connection which runs as a background process sends a
   json string (contains response received from remote device)
   to foreground ansible-playbook process over stdout.

*  If in case debug flag is enabled the connection_loader api
   invoked from ansible-connection `ssh = connection_loader.get('ssh', class_only=True)`
   results in emitting debug logs on stdout. This  spurious log
   interfere with the actual response and results in failure while
   reading json string in ansible-playbook process

* To avoid this save stdout of ansible-connection and redirect it string
  buffer to accumulate all the logs emitted by core API's

* Add these logs in `result['messages']` which is send a json string after reinstating saved stdout

*  Remove unwanted code in ansible-connection

* Fix review comment
2018-01-25 02:48:45 +05:30
..
cli add a vault --encrypt-vault-to specify vault id to use for encrypt (#31067) 2018-01-22 17:12:10 -05:00
compat Create a short license for PSF and MIT. (#32212) 2017-11-06 10:25:30 -08:00
config spelling (#35258) 2018-01-24 11:36:40 +00:00
errors Make AnsibleActionDone a private exception 2018-01-22 23:36:34 -08:00
executor Fix debug logs failing with persistent connection (#33049) 2018-01-25 02:48:45 +05:30
galaxy Catch exception comparing role versions, and provide a user friendly error message. Fixes #32301 (#34427) 2018-01-11 17:41:23 -06:00
inventory add inventory caching & use in virtualbox inventory plugin (#34510) 2018-01-22 19:33:14 -05:00
module_utils More bug fixes before 2.5 (#35260) 2018-01-24 08:15:37 -08:00
modules Support for Services in the IPA module (#35175) 2018-01-24 23:08:42 +05:30
parsing Remove deprecated code (#34828) 2018-01-23 12:02:09 -06:00
playbook Temporary (#31677) 2018-01-15 21:15:04 -08:00
plugins Fix debug logs failing with persistent connection (#33049) 2018-01-25 02:48:45 +05:30
template [template/vars] Use to_native(exception) as a fallback for Python 3 which doesn't have a .message attribute (#34044) 2017-12-19 17:34:46 -05:00
utils Fix debug logs failing with persistent connection (#33049) 2018-01-25 02:48:45 +05:30
vars Don't skip an inventory source just because it has a comma (#35002) 2018-01-24 09:44:55 -06:00
__init__.py
constants.py Move module_set_locale and module_lang back to global 2018-01-22 18:38:15 -08:00
release.py Bump the versions now that devel is 2.5 2017-09-06 13:13:57 -07:00