From 732b8cc0b85e70da8b3bbeea4a6a50115c93b10e Mon Sep 17 00:00:00 2001 From: Bai Date: Mon, 16 Nov 2020 17:47:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(ops):=20=E4=BF=AE=E5=A4=8DAdHocExecution?= =?UTF-8?q?=E5=AD=97=E6=AE=B5task=5Fdisplay=E9=95=BF=E5=BA=A6=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ops/models/adhoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ops/models/adhoc.py b/apps/ops/models/adhoc.py index 36ebd77e0..95a1106b1 100644 --- a/apps/ops/models/adhoc.py +++ b/apps/ops/models/adhoc.py @@ -184,7 +184,7 @@ class AdHoc(OrgModelMixin): hid = str(uuid.uuid4()) execution = AdHocExecution( id=hid, adhoc=self, task=self.task, - task_display=str(self.task), + task_display=str(self.task)[:128], date_start=timezone.now(), hosts_amount=self.hosts.count(), )