fix: 修复参数取值错误

pull/10997/head
fangfang.dong 2023-07-18 12:00:41 +08:00 committed by Bryan
parent 0436487bdb
commit 539babcc97
2 changed files with 2 additions and 1 deletions

View File

@ -228,6 +228,7 @@ class InsecureCommandAlertAPI(generics.CreateAPIView):
command.update({
'_user_id': session.user_id,
'_asset_id': session.asset_id,
'_account': session.account,
'_account_id': session.account_id,
'_org_name': session.org.name
})

View File

@ -83,7 +83,7 @@ class CommandWarningMessage(CommandAlertMixin, UserMessage):
user_id = command.get('_user_id', '')
asset = command['asset']
asset_id = command.get('_asset_id', '')
account = command['account']
account = command['_account']
account_id = command.get('_account_id', '')
cmd_acl = command.get('_cmd_filter_acl')
cmd_group = command.get('_cmd_group')