From ab0c8fb5af470acbe82b165f765d6f09efa38118 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 19 Jan 2023 17:02:51 -0500 Subject: [PATCH] Convert list names to lowercase when checking for existance --- mailman_sync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailman_sync.py b/mailman_sync.py index 39c1747..9625cd4 100755 --- a/mailman_sync.py +++ b/mailman_sync.py @@ -146,7 +146,7 @@ def main( for name, props in expected_lists.items(): list_name = name + list_suffix list_manager = ListManager(mailman_bin, list_name, dry_run) - if list_name not in existing_lists: + if list_name.lower() not in existing_lists: if dry_run: print(f"Skipping non-existing list {list_name} in dry run mode") continue