fix(ops): 修复AdHocExecution字段task_display长度问题

pull/5021/head
Bai 2020-11-16 17:47:38 +08:00 committed by 老广
parent a9f90b4e31
commit 732b8cc0b8
1 changed files with 1 additions and 1 deletions

View File

@ -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(),
)