def get_host_by_fqdn(client, fqdn):
    """
    Get host object by fqdn from ADCM

    Args:
        client: ADCM client API objects
        fqdn: host's fqdn

    Returns:
        (host object): Host object by fqdn

    Raises:
        :py:class:`ValueError`
            If host is not found
    """

    host_list = client.host.list()
    for host in host_list:
        if host['fqdn'] == fqdn:
            return host
    raise ValueError(f"Host with fqdn '{fqdn}' is not found in a host list")