mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-01 01:02:06 +00:00
fix: 解决执行命令作业指定当前路径的问题
This commit is contained in:
parent
a3baac6763
commit
462dc2543b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user