From 3b4db8be05d66f713cd3d7b5257c766fa779b41d Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Wed, 9 Apr 2025 15:21:31 -0700 Subject: [PATCH] Update check_chair.py for per-schedule chairs Change-Id: I4f7f52ed5c055ccf8855cfda9653783cad1133c5 --- tools/check_chair.py | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/tools/check_chair.py b/tools/check_chair.py index e9f3b5c8..123aca47 100644 --- a/tools/check_chair.py +++ b/tools/check_chair.py @@ -59,11 +59,21 @@ A tool that checks a meeting chair matches the canonical format. meetings = meeting.load_meetings(args.yaml_dir) return_code = 0 for m in meetings: - ok, msg = check_chair(m.chair) - if not ok: - return_code = 1 - print(m.filefrom) - print(msg.rstrip()) + if m.chair is not None: + ok, msg = check_chair(m.chair) + if not ok: + return_code = 1 + print(m.filefrom) + print(msg.rstrip()) + for s in m.schedules: + if s.chair == m.chair: + # already checked + continue + ok, msg = check_chair(s.chair) + if not ok: + return_code = 1 + print(m.filefrom) + print(msg.rstrip()) return return_code