Skip to content

Commit 3f09ee5

Browse files
decode byte to str;
1 parent 913bbf0 commit 3f09ee5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/executor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ def wait_for_containers(self, count, label=None, name=None, timeout=500):
146146
for container in containers:
147147
# The healthcheck on our Splunk image is not reliable - resorting to checking logs
148148
if container.get("Labels", {}).get("maintainer") == "[email protected]":
149-
output = self.client.logs(container["Id"], tail=5)
149+
output = self.client.logs(container["Id"], tail=5).decode()
150+
self.logger.info(f"DEBUG: Check the tupe of output - {type(output)}")
150151
if "unable to" in output or "denied" in output or "splunkd.pid file is unreadable" in output:
151152
self.logger.error("Container {} did not start properly, last log line: {}".format(container["Names"][0], output))
152153
print(f"SCRIPT FAILS TO CREATE CONTAINER")

0 commit comments

Comments
 (0)