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,