From b264db3e7e6e9e9d3c5c0a6a96b2a7f844b7ac00 Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Thu, 23 Jun 2022 17:43:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E8=BF=81=E7=A7=BB=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/assets/models/cmd_filter.py | 2 +- apps/tickets/migrations/0017_auto_20220623_1027.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/assets/models/cmd_filter.py b/apps/assets/models/cmd_filter.py index 235a4f331..4e8e20cd9 100644 --- a/apps/assets/models/cmd_filter.py +++ b/apps/assets/models/cmd_filter.py @@ -173,7 +173,7 @@ class CommandFilterRule(OrgModelMixin): 'apply_run_user_id': session.user_id, 'apply_run_asset_id': session.asset_id, 'apply_run_system_user_id': session.system_user_id, - 'apply_run_command': run_command, + 'apply_run_command': run_command[:4096], 'apply_from_session_id': str(session.id), 'apply_from_cmd_filter_rule_id': str(cmd_filter_rule.id), 'apply_from_cmd_filter_id': str(cmd_filter_rule.filter.id), diff --git a/apps/tickets/migrations/0017_auto_20220623_1027.py b/apps/tickets/migrations/0017_auto_20220623_1027.py index 7ac1c9eb2..1738de35a 100644 --- a/apps/tickets/migrations/0017_auto_20220623_1027.py +++ b/apps/tickets/migrations/0017_auto_20220623_1027.py @@ -287,7 +287,7 @@ def command_confirm_migrate(apps, *args): 'apply_run_user': apply_run_user, 'apply_run_asset': apply_run_asset, 'apply_run_system_user': apply_run_system_user, - 'apply_run_command': meta.get('apply_run_command', ''), + 'apply_run_command': meta.get('apply_run_command', '')[:4096], 'apply_from_session_id': apply_from_session_id, 'apply_from_cmd_filter_id': apply_from_cmd_filter_id, 'apply_from_cmd_filter_rule_id': apply_from_cmd_filter_rule_id,