Fix split buffer with inconsistently delimited json objects.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin 2015-10-05 12:56:10 -04:00
commit 15d0c60a73
6 changed files with 62 additions and 22 deletions

View file

@ -33,7 +33,6 @@ from .progress_stream import stream_output
from .progress_stream import StreamOutputError
from .utils import json_hash
from .utils import parallel_execute
from .utils import split_buffer
log = logging.getLogger(__name__)
@ -724,7 +723,7 @@ class Service(object):
)
try:
all_events = stream_output(split_buffer(build_output), sys.stdout)
all_events = stream_output(build_output, sys.stdout)
except StreamOutputError as e:
raise BuildError(self, six.text_type(e))