mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 18:14:05 +00:00
Use only rv['StatusCode'] to simplify code (#1982)
This commit is contained in:
@@ -120,10 +120,7 @@ class TrackedContainer:
|
|||||||
assert not self.get_warnings(logs)
|
assert not self.get_warnings(logs)
|
||||||
if no_errors:
|
if no_errors:
|
||||||
assert not self.get_errors(logs)
|
assert not self.get_errors(logs)
|
||||||
if no_failure:
|
assert no_failure == (rv["StatusCode"] == 0)
|
||||||
assert rv == 0 or rv["StatusCode"] == 0
|
|
||||||
else:
|
|
||||||
assert rv != 0 and rv["StatusCode"] != 0
|
|
||||||
return logs
|
return logs
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
Reference in New Issue
Block a user