Skip to content

Commit

Permalink
Merge pull request #437 from onetop21/dev
Browse files Browse the repository at this point in the history
update 0.4.7
  • Loading branch information
onetop21 authored Jul 4, 2022
2 parents 31cd6ab + 97c659a commit af02871
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/mlad/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.4.6'
__version__ = '0.4.7'
3 changes: 2 additions & 1 deletion python/mlad/cli/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,8 @@ def _format_log(log, colorkey=None, max_name_width=32, pretty=True):
else:
colorkey = defaultdict(lambda: '')
if '\r' in msg:
msg = msg.split('\r')[-1] + '\n'
msg_list = msg.split('\r')
msg = msg_list[-2] if msg.endswith('\r\n') else msg_list[-1]
if msg.endswith('\n'):
msg = msg[:-1]
if timestamp is not None:
Expand Down
2 changes: 1 addition & 1 deletion python/mlad/core/docker/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _request_build(headers, params, tar):
import requests_unixsocket
with requests_unixsocket.post(f"{host}/v1.24/build", headers=headers, params=params, data=tar, stream=True) as resp:
for _ in resp.iter_lines(decode_unicode=True):
line = json.loads(_)
line = json.loads(_ or '{}')
yield line
if stream:
return _request_build(headers, params, tar)
Expand Down

0 comments on commit af02871

Please sign in to comment.