Convert list names to lowercase when checking for existance

This commit is contained in:
Adam Goldsmith 2023-01-19 17:02:51 -05:00
parent c65cd8ea8e
commit ab0c8fb5af

View File

@ -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