Commit e3514f6d authored by Dmitry Lukhtionov's avatar Dmitry Lukhtionov
Browse files

Fix

parent 592b5254
Pipeline #24414 passed with stages
in 2 minutes and 52 seconds
......@@ -222,7 +222,7 @@ class DeployHandler(BaseHandler):
self.write(data)
self.flush()
self.job_log.append_log(data)
for match in self.rx_recap.finditer(data):
for match in self.rx_recap.finditer(str(data)):
g = match.groups()
self.recap[g[0]] = [int(x) for x in g[1:]]
self.play_log += [data]
......@@ -240,7 +240,7 @@ class DeployHandler(BaseHandler):
with db.atomic():
self.job_log.complete_ts = datetime.datetime.now()
self.job_log.is_complete = True
self.job_log.log = "".join(self.play_log)
self.job_log.log = "".join(str(self.play_log))
(self.job_log.n_ok, self.job_log.n_changed,
self.job_log.n_unreachable, self.job_log.n_failed) = recap
self.job_log.save()
......@@ -41,7 +41,7 @@ class JobLog(Model):
def append_log(self, data):
with open(self.log_path, "a") as f:
f.write(data)
f.write(str(data))
def get_log(self):
path = self.log_path
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment