mirror of https://github.com/jumpserver/jumpserver
fix: 修复工单迁移文件
parent
dbc5b7bdc3
commit
b264db3e7e
|
@ -173,7 +173,7 @@ class CommandFilterRule(OrgModelMixin):
|
||||||
'apply_run_user_id': session.user_id,
|
'apply_run_user_id': session.user_id,
|
||||||
'apply_run_asset_id': session.asset_id,
|
'apply_run_asset_id': session.asset_id,
|
||||||
'apply_run_system_user_id': session.system_user_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_session_id': str(session.id),
|
||||||
'apply_from_cmd_filter_rule_id': str(cmd_filter_rule.id),
|
'apply_from_cmd_filter_rule_id': str(cmd_filter_rule.id),
|
||||||
'apply_from_cmd_filter_id': str(cmd_filter_rule.filter.id),
|
'apply_from_cmd_filter_id': str(cmd_filter_rule.filter.id),
|
||||||
|
|
|
@ -287,7 +287,7 @@ def command_confirm_migrate(apps, *args):
|
||||||
'apply_run_user': apply_run_user,
|
'apply_run_user': apply_run_user,
|
||||||
'apply_run_asset': apply_run_asset,
|
'apply_run_asset': apply_run_asset,
|
||||||
'apply_run_system_user': apply_run_system_user,
|
'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_session_id': apply_from_session_id,
|
||||||
'apply_from_cmd_filter_id': apply_from_cmd_filter_id,
|
'apply_from_cmd_filter_id': apply_from_cmd_filter_id,
|
||||||
'apply_from_cmd_filter_rule_id': apply_from_cmd_filter_rule_id,
|
'apply_from_cmd_filter_rule_id': apply_from_cmd_filter_rule_id,
|
||||||
|
|
Loading…
Reference in New Issue