Allow stdoutRedPth to be NULL in taskmgr

This commit is contained in:
zhuyj17 2018-11-12 00:25:38 +08:00
parent 9f46710bac
commit 72e223c5c2
1 changed files with 2 additions and 2 deletions

View File

@ -374,8 +374,8 @@ class TaskMgr(threading.Thread):
commandLine = json_task['command'], commandLine = json_task['command'],
packagePath = json_task['srcAddr'], packagePath = json_task['srcAddr'],
envVars = {}), envVars = {}),
stderrRedirectPath = json_task['stdErrRedPth'], stderrRedirectPath = json_task.get('stdErrRedPth',""),
stdoutRedirectPath = json_task['stdOutRedPth']), stdoutRedirectPath = json_task.get('stdOutRedPth',"")),
cluster = Cluster( cluster = Cluster(
image = Image( image = Image(
name = json_task['image'].split('_')[0], #json_task['cluster']['image']['name'], name = json_task['image'].split('_')[0], #json_task['cluster']['image']['name'],