Merge "Update check_chair.py for per-schedule chairs"
This commit is contained in:
commit
eecaf9eda9
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user