def print_region_summary_message()

in Onboarding/AWS/Utils.py [0:0]


def print_region_summary_message(region: str, clusters_to_update: Set[str], left_clusters: List[str]):
    num_of_successfully_updated_clusters = len(clusters_to_update) - len(left_clusters)

    if num_of_successfully_updated_clusters > 0:
        print_colored_message(f"Successfully updated {num_of_successfully_updated_clusters} EKS clusters in {region} region", GREEN)

    if len(left_clusters):
        print_colored_message(f"Failed on {len(left_clusters)} Eks clusters, due to insufficient permissions.", RED)