mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-07 20:08:58 +00:00
fix: 解决执行命令引号造成的问题
This commit is contained in:
parent
327eb7a27d
commit
3ddeb97ea5
@ -163,9 +163,10 @@ class JobExecution(JMSOrgBaseModel):
|
|||||||
def compile_shell(self):
|
def compile_shell(self):
|
||||||
if self.current_job.type != 'adhoc':
|
if self.current_job.type != 'adhoc':
|
||||||
return
|
return
|
||||||
result = "{}{}{} ".format('\'', self.current_job.args, '\'')
|
result = self.current_job.args
|
||||||
result += "chdir={}".format(self.current_job.chdir)
|
result += " chdir={}".format(self.current_job.chdir)
|
||||||
return result
|
return self.job.args
|
||||||
|
# return result
|
||||||
|
|
||||||
def get_runner(self):
|
def get_runner(self):
|
||||||
inv = self.current_job.inventory
|
inv = self.current_job.inventory
|
||||||
|
Loading…
Reference in New Issue
Block a user