zuul/zuul/ansible/base
Gonéri Le Bouder 2e79671991
zuul_stream: avoid exception in _log_streamline
`_read_log()` calls `_log_streamline()` when it handles `socket.timeout`
exception. This change ensures `_log_streamline()` don't raise another
exception:

```
Traceback (most recent call last):'
  File "/var/lib/zuul/ansible/2.9/zuul/ansible/callback/zuul_stream.py", line 137, in _read_log'
    s = socket.create_connection((ip, port), 5)'
  File "/usr/lib/python3.6/socket.py", line 724, in create_connection'
    raise err'
  File "/usr/lib/python3.6/socket.py", line 713, in create_connection'
    sock.connect(sa)'
socket.timeout: timed out'
'
During handling of the above exception, another exception occurred:'
'
Traceback (most recent call last):'
  File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner'
    self.run()'
  File "/usr/lib/python3.6/threading.py", line 864, in run'
    self._target(*self._args, **self._kwargs)'
  File "/var/lib/zuul/ansible/2.9/zuul/ansible/callback/zuul_stream.py", line 152, in _read_log'
    % (ip, port))'
  File "/var/lib/zuul/ansible/2.9/zuul/ansible/callback/zuul_stream.py", line 202, in _log_streamline'
    ts, ln = line.split(' | ', 1)"
ValueError: not enough values to unpack (expected 2, got 1)'
```

Change-Id: Ifeea230d1285ab62acf11a0ed37e38e508e1dba8
2020-07-15 13:05:35 -04:00
..
action Allow more k8s actions in untrusted context 2020-02-10 09:54:54 -08:00
actiongeneral Remove ununecessary shebangs 2020-05-18 19:10:33 +02:00
callback zuul_stream: avoid exception in _log_streamline 2020-07-15 13:05:35 -04:00
filter Manage ansible installations within zuul 2019-03-15 09:09:16 +01:00
library Replace deprecated Thread.isAlive() with Thread.is_alive() 2020-06-01 12:49:07 +02:00
lookup Allow template lookup in untrusted context 2020-02-10 12:45:13 -08:00
__init__.py Manage ansible installations within zuul 2019-03-15 09:09:16 +01:00