fix: 解决执行命令引号造成的问题

pull/9225/head^2
Aaron3S 2022-12-20 20:36:12 +08:00
parent 327eb7a27d
commit 3ddeb97ea5
1 changed files with 4 additions and 3 deletions

View File

@ -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