Commit 5d609428 authored by Daniele Venzano's avatar Daniele Venzano

Fix pylint errors

parent 5b995566
......@@ -27,7 +27,7 @@ log = logging.getLogger(__name__)
def _path_from_execution(execution: Execution):
return os.path.join(get_conf().service_log_path, get_conf().deployment_name, str(execution.id))
return os.path.join(get_conf().service_log_path, get_conf().deployment_name, str(execution.id))
def _init(execution: Execution):
......@@ -62,9 +62,9 @@ def save(execution: Execution):
if log_gen is None:
_shutdown()
return
with open(fpath, 'wb') as fp:
with open(fpath, 'wb') as out_fp:
for line in log_gen:
fp.write(line)
out_fp.write(line)
_shutdown()
......
......@@ -19,7 +19,6 @@ import logging
from zoe_lib.sql_manager import Execution, SQLManager
from zoe_lib import exec_logs
from zoe_lib.config import get_conf
from zoe_master.scheduler import ZoeScheduler
......
Markdown is supported
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