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