mirror of https://github.com/jumpserver/jumpserver
fix(ops): 修复AdHocExecution字段task_display长度问题
parent
a9f90b4e31
commit
732b8cc0b8
|
@ -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(),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue