From 3ddeb97ea5f76798e817ebc300093a8c9fa88fd9 Mon Sep 17 00:00:00 2001 From: Aaron3S Date: Tue, 20 Dec 2022 20:36:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E6=89=A7=E8=A1=8C?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E5=BC=95=E5=8F=B7=E9=80=A0=E6=88=90=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ops/models/job.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/ops/models/job.py b/apps/ops/models/job.py index 6f0c7f696..f554343ab 100644 --- a/apps/ops/models/job.py +++ b/apps/ops/models/job.py @@ -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