Add a bit more feedback for missing lists
This commit is contained in:
parent
056a2993de
commit
2daf2c00b8
@ -42,9 +42,11 @@ def main(mailman_bin: Path, api: str, token: str, list_suffix: str):
|
||||
).stdout.split(b"\n")
|
||||
certification_lists = r.json()
|
||||
for name, members in certification_lists.items():
|
||||
print(name, "\n".join(members))
|
||||
if name + list_suffix in existing_lists:
|
||||
list_name = name + list_suffix
|
||||
if list_name in existing_lists:
|
||||
sync_members(mailman_bin, name, members)
|
||||
else:
|
||||
print(f"Skipping {list_name}, as it does not exist in Mailman")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user