community.general/lib/ansible
Chris Lamb eb1141ee79 Ignore EPIPE to avoid tracebacks when piping output to other commands
For example:

  $ ansible web --list-hosts | head -n1
  hosts (7):
  ERROR! Unexpected Exception: [Errno 32] Broken pipe
  Traceback (most recent call last):
    File "/home/lamby/git/private/lamby-ansible2/.venv/bin/ansible", line 114, in <module>
      display.display("to see the full traceback, use -vvv")
    File "/home/lamby/git/private/lamby-ansible2/.venv/local/lib/python2.7/site-packages/ansible/utils/display.py", line 133, in display
      sys.stdout.flush()
  IOError: [Errno 32] Broken pipe

Such a pipe target will close up shop early when its seen enough input,
causing ansible to print an ugly traceback.

Signed-off-by: Chris Lamb <chris@chris-lamb.co.uk>
2016-03-03 19:21:06 +00:00
..
cli Rework the way ad-hoc filters inventory to match how cli/playbook does it 2016-02-25 12:36:44 -05:00
compat Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version. 2015-10-16 08:21:28 -07:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors Relocate use of ERROR to display class, to avoid doubling up 2016-01-19 12:10:39 -05:00
executor only do squash when 'squashable field' present 2016-03-01 15:11:34 -05:00
galaxy Fix bug 14715: Galaxy CLI paging error 2016-02-29 21:21:32 -05:00
inventory added warning for when host file doesn't exist 2016-02-29 16:18:06 -05:00
module_utils Fixing bug in setup related to StringIO fixes 2016-03-02 08:05:43 -05:00
modules update submodule refs 2016-02-29 16:43:30 -08:00
new_inventory fix some warning of undefined name. 2015-10-09 12:43:42 +08:00
parsing Fixing up jsonify and adding unit tests 2016-02-29 14:51:23 -05:00
playbook Make task repr really work for meta tasks. 2016-03-01 06:03:22 +00:00
plugins avoid issues when stdin is a closed file 2016-03-02 11:58:16 -05:00
template Remove debugging and fix the place where bytes are being handed to StringIO 2016-03-02 09:31:06 -08:00
utils Ignore EPIPE to avoid tracebacks when piping output to other commands 2016-03-03 19:21:06 +00:00
vars properly combine vars if merge is set 2016-02-12 00:55:17 -05:00
__init__.py Bump version in devel now that stable-2.0 has been branched 2015-12-02 17:57:53 +05:30
constants.py Merge pull request #13654 from sivel/paramiko-proxy-command 2016-02-23 11:30:43 -06:00
test-requirements.txt Making the switch to v2 2015-05-03 21:47:26 -05:00