def get_value(self):
    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_selector = self.value
    ip_result = get_ip_picker_result(username, bk_biz_id, bk_supplier_account, ip_selector)
    if self.value.get('with_cloud_id', False):
        ip = ','.join(['{}:{}'.format(host['bk_cloud_id'], host['bk_host_innerip']) for host in ip_result['data']])
    else:
        ip = ','.join([host['bk_host_innerip'] for host in ip_result['data']])
    return ip
def get_value(self):
    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_selector = self.value
    ip_result = get_ip_picker_result(username, bk_biz_id, bk_supplier_account, ip_selector)
    if self.value.get('with_cloud_id', False):
        ip = ','.join(['{}:{}'.format(host['bk_cloud_id'], host['bk_host_innerip']) for host in ip_result['data']])
    else:
        ip = ','.join([host['bk_host_innerip'] for host in ip_result['data']])
    return ip