def get_all_distributions(**kwargs):
    """
    Fetches all distributions for a given account/region
    :param kwargs:
        account_number: AWS account number
    :return:
    """
    distributions = []
    try:
        while True:
            response = get_distributions(**kwargs)

            list = response.get("DistributionList")
            if not list:
                return distributions

            items = list.get("Items")
            if not items:
                return distributions
            distributions += items

            if not list.get("IsTruncated"):
                return _filter_ignored_distributions(distributions, **kwargs)
            else:
                kwargs.update(dict(Marker=list["NextMarker"]))
    except Exception as e:  # noqa
        metrics.send("list_all_distributions_error", "counter", 1)
        capture_exception()
        raise

    Fetches all distributions for a given account/region
    :param kwargs:
        account_number: AWS account number
    :return:
    
lemur/plugins/lemur_aws/cloudfront.py