def write_summary_to_file()

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


def write_summary_to_file(failed_clusters_map: Dict[str, List[str]], successful_clusters_map: Dict[str, List[str]], is_all_clusters: bool, output_file: str) -> None:
    if output_file == "":
        return

    summary = format_summary_messages(failed_clusters_map, successful_clusters_map, is_all_clusters, with_color=False)
    with open(output_file, "w") as file:
        file.write(summary)