def hosts_contain_id(hosts_data, host_id):
    """
    True if host_id is id of a host.

    :param hosts_data: list of hosts
    :param host_id: id of a host
    :return: True or False
    """
    for host in hosts_data:
        if host_id == host['id']:
            return True
    return False