def get_value(self):
    '\n        @summary: 返回 dict 对象，将每个可从CMDB查询到的输入IP作为键，将从CMDB查询到的主机属性封装成字典作为值\n        @note: 引用127.0.0.1的所有属性，如 ${value["127.0.0.1"]} -> {"bk_host_id": 999, "import_from": 3, ...}\n        @note: 引用127.0.0.1的bk_host_id属性，如 ${value["127.0.0.1"]["bk_host_id"]} -> 999\n        @return:\n        '
    username = self.pipeline_data['executor']
    project_id = self.pipeline_data['project_id']
    project = Project.objects.get(id=project_id)
    bk_biz_id = (project.bk_biz_id if project.from_cmdb else '')
    bk_supplier_account = supplier_account_for_project(project_id)
    ip_list = get_ip_by_regex(self.value)
    if (not ip_list):
        return {}
    hosts_list = get_business_host(username, bk_biz_id, bk_supplier_account, ['bk_cpu', 'bk_isp_name', 'bk_os_name', 'bk_province_name', 'bk_host_id', 'import_from', 'bk_os_version', 'bk_disk', 'operator', 'bk_mem', 'bk_host_name', 'bk_host_innerip', 'bk_comment', 'bk_os_bit', 'bk_outer_mac', 'bk_asset_id', 'bk_service_term', 'bk_sla', 'bk_cpu_mhz', 'bk_host_outerip', 'bk_state_name', 'bk_os_type', 'bk_mac', 'bk_bak_operator', 'bk_supplier_account', 'bk_sn', 'bk_cpu_module'], ip_list)
    hosts = {}
    for host in hosts_list:
        ip = host['bk_host_innerip']
        if ('bk_cloud_id' in host):
            host.pop('bk_cloud_id')
        hosts[ip] = host
    return hosts
@summary: 返回 dict 对象，将每个可从CMDB查询到的输入IP作为键，将从CMDB查询到的主机属性封装成字典作为值
@note: 引用127.0.0.1的所有属性，如 ${value["127.0.0.1"]} -> {"bk_host_id": 999, "import_from": 3, ...}
@note: 引用127.0.0.1的bk_host_id属性，如 ${value["127.0.0.1"]["bk_host_id"]} -> 999
@return:
def get_value(self):
    '\n        @summary: 返回 dict 对象，将每个可从CMDB查询到的输入IP作为键，将从CMDB查询到的主机属性封装成字典作为值\n        @note: 引用127.0.0.1的所有属性，如 ${value["127.0.0.1"]} -> {"bk_host_id": 999, "import_from": 3, ...}\n        @note: 引用127.0.0.1的bk_host_id属性，如 ${value["127.0.0.1"]["bk_host_id"]} -> 999\n        @return:\n        '
    username = self.pipeline_data['executor']
    project_id = self.pipeline_data['project_id']
    project = Project.objects.get(id=project_id)
    bk_biz_id = (project.bk_biz_id if project.from_cmdb else )
    bk_supplier_account = supplier_account_for_project(project_id)
    ip_list = get_ip_by_regex(self.value)
    if (not ip_list):
        return {}
    hosts_list = get_business_host(username, bk_biz_id, bk_supplier_account, ['bk_cpu', 'bk_isp_name', 'bk_os_name', 'bk_province_name', 'bk_host_id', 'import_from', 'bk_os_version', 'bk_disk', 'operator', 'bk_mem', 'bk_host_name', 'bk_host_innerip', 'bk_comment', 'bk_os_bit', 'bk_outer_mac', 'bk_asset_id', 'bk_service_term', 'bk_sla', 'bk_cpu_mhz', 'bk_host_outerip', 'bk_state_name', 'bk_os_type', 'bk_mac', 'bk_bak_operator', 'bk_supplier_account', 'bk_sn', 'bk_cpu_module'], ip_list)
    hosts = {}
    for host in hosts_list:
        ip = host['bk_host_innerip']
        if ('bk_cloud_id' in host):
            host.pop('bk_cloud_id')
        hosts[ip] = host
    return hosts