fix: 修复工单迁移文件

pull/8473/head
feng626 2022-06-23 17:43:54 +08:00 committed by 老广
parent dbc5b7bdc3
commit b264db3e7e
2 changed files with 2 additions and 2 deletions

View File

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

View File

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