diff --git a/dbm-ui/backend/dbm_init/json_files/bklog/dbm_win_dbactuator.json b/dbm-ui/backend/dbm_init/json_files/bklog/dbm_win_dbactuator.json index 461411e4cd..4a75f17fc5 100644 --- a/dbm-ui/backend/dbm_init/json_files/bklog/dbm_win_dbactuator.json +++ b/dbm-ui/backend/dbm_init/json_files/bklog/dbm_win_dbactuator.json @@ -11,6 +11,7 @@ "target_object_type": "HOST", "target_node_type": "TOPO", "target_nodes": [], + "environment": "windows", "params": { "paths": [ "d:\\install\\dbactuator*\\logs\\*.log" diff --git a/dbm-ui/backend/dbm_init/json_files/format.py b/dbm-ui/backend/dbm_init/json_files/format.py index 9102fa8a62..a76cb053ff 100644 --- a/dbm-ui/backend/dbm_init/json_files/format.py +++ b/dbm-ui/backend/dbm_init/json_files/format.py @@ -90,7 +90,7 @@ def format_dbm_win_dbactuator(cls): internal_set_info = CCApi.get_biz_internal_module({"bk_biz_id": env.DBA_APP_BK_BIZ_ID}, use_admin=True) target_nodes.append( { - "bk_biz_id": internal_set_info["bk_biz_id"], + "bk_biz_id": env.DBA_APP_BK_BIZ_ID, "bk_inst_id": internal_set_info["bk_set_id"], "bk_obj_id": "set", } diff --git a/dbm-ui/backend/tests/mock_data/components/cc.py b/dbm-ui/backend/tests/mock_data/components/cc.py index edeb3628ba..8fedd7fbbc 100644 --- a/dbm-ui/backend/tests/mock_data/components/cc.py +++ b/dbm-ui/backend/tests/mock_data/components/cc.py @@ -32,7 +32,6 @@ ] MOCK_GET_BIZ_INTERNAL_MODULE_RETURN = { - "bk_biz_id": constant.BK_BIZ_ID, "bk_set_id": constant.BK_SET_ID, "bk_set_name": "空闲机池", "module": [