fix: 解决执行命令作业指定当前路径的问题

pull/9443/head
Aaron3S 2023-02-06 16:19:43 +08:00
parent a3baac6763
commit 462dc2543b
1 changed files with 1 additions and 3 deletions

View File

@ -176,9 +176,7 @@ class JobExecution(JMSOrgBaseModel):
shell = self.current_job.args
if self.current_job.chdir:
if module == self.current_job.module:
shell += " path={}".format(self.current_job.chdir)
else:
if module == "shell":
shell += " chdir={}".format(self.current_job.chdir)
if self.current_job.module in ['python']:
shell += " executable={}".format(self.current_job.module)