Merge "Update check_chair.py for per-schedule chairs"

This commit is contained in:
Zuul 2025-04-09 22:46:25 +00:00 committed by Gerrit Code Review
commit eecaf9eda9

View File

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