Skip to content

Commit

Permalink
Merge f6cb48f into b1daacd
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushr2 committed Aug 31, 2019
2 parents b1daacd + f6cb48f commit c192b01
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions chainlink/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,12 @@ async def _run_stage(self, stage, mount, environ):
result = {
"data": self.client.api.inspect_container(container.id)["State"],
"killed": killed,
"logs": {
"stdout": container.logs(stderr=False, timestamps=True),
"stderr": container.logs(stdout=False, timestamps=True),
},
"logs": {"stdout": None, "stderr": None},
}
if stage.get("logs", True):
result["logs"]["stdout"] = container.logs(stderr=False, timestamps=True)
result["logs"]["stderr"] = container.logs(stdout=False, timestamps=True)

result["success"] = (not killed) and (result["data"]["ExitCode"] == 0)
container.remove()

Expand Down

0 comments on commit c192b01

Please sign in to comment.