diff --git a/apps/backend/subscription/tools.py b/apps/backend/subscription/tools.py index 4155272e9..9b60488bc 100644 --- a/apps/backend/subscription/tools.py +++ b/apps/backend/subscription/tools.py @@ -691,7 +691,7 @@ def get_host_detail(host_info_list: list, bk_biz_id: int = None, data_backend: s for host_info in host_info_list: if "bk_host_id" in host_info: - if host_info["bk_host_id"] in host_id_dict.keys(): + if str(host_info["bk_host_id"]) in host_id_dict.keys(): host_info.update(host_id_dict[host_info["bk_host_id"]]) host_details.append(host_info) else: