mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-23 13:37:31 +00:00
fix(ops): 修复AdHocExecution字段task_display长度问题
This commit is contained in:
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
Block a user