From 686bfc7e2476088df74c0a01ae179e4928d87ed2 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 11 Jan 2023 01:36:30 -0500 Subject: [PATCH] Use more generic variable name for expected lists --- mailman_sync.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mailman_sync.py b/mailman_sync.py index 98973c1..fbb3046 100755 --- a/mailman_sync.py +++ b/mailman_sync.py @@ -116,6 +116,7 @@ def main( if not r.ok: print(f"Failed to get mailing list data from api: {r.status_code} {r.text}") return + expected_lists = r.json() existing_lists = subprocess.run( [mailman_bin / "list_lists", "-b"], @@ -123,8 +124,7 @@ def main( capture_output=True, check=True, ).stdout.split("\n") - certification_lists = r.json() - for name, members in certification_lists.items(): + for name, members 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: