mirror of https://github.com/jumpserver/jumpserver
fix: 解决执行命令引号造成的问题
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