community.general/lib/ansible/plugins
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
..
action More bug fixes before 2.5 (#35260) 2018-01-24 08:15:37 -08:00
cache add inventory caching & use in virtualbox inventory plugin (#34510) 2018-01-22 19:33:14 -05:00
callback Python 2.6 `str.format()` compatibility fixes. 2018-01-10 14:08:11 -08:00
cliconf Ansible 2.5 feature support for dellos9 (#34880) 2018-01-23 13:59:27 +00:00
connection Fix debug logs failing with persistent connection (#33049) 2018-01-25 02:48:45 +05:30
filter Implement the reduce_on_network method to filter a list of IP addresses on a given range. (#34929) (#34930) 2018-01-23 08:14:56 -06:00
inventory add inventory caching & use in virtualbox inventory plugin (#34510) 2018-01-22 19:33:14 -05:00
lookup adds two new infoblox lookup plugins (#35189) 2018-01-24 13:28:21 +00:00
netconf adds support for using connection=netconf (#33400) 2018-01-24 21:48:41 +05:30
shell Move module_set_locale and module_lang back to global 2018-01-22 18:38:15 -08:00
strategy add inventory caching & use in virtualbox inventory plugin (#34510) 2018-01-22 19:33:14 -05:00
terminal Changing BSD to GPL (#34909) 2018-01-24 11:55:33 -05:00
test Deprecate tests used as filters (#32361) 2017-11-27 17:58:08 -05:00
vars Scan group_vars/host_vars in sorted order 2017-11-20 21:57:42 -05:00
__init__.py fixed up get_options in AnsiblePlugin to use the correct plugin name 2017-11-22 15:35:31 -05:00
loader.py Implement plugin filtering 2018-01-22 16:54:53 -08:00