mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-06 19:38:54 +00:00
fix: 解决执行命令引号造成的问题
This commit is contained in:
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
Block a user