From bf8e2b9ad0de116c26b9d467c0ce9d007c86f817 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Thu, 10 Aug 2017 00:16:34 +0000 Subject: [PATCH] Limit PTL rolls to foundation members Missing the original I920e1bc134d1283e2019f4389a5491e9b746cca0 implementation, also filter the per-team PTL electorates to only include OpenStack Foundation Individual Members. The previous change did this correctly for the full (Technical Committee) electorate but failed to apply a similar conditional constraint to Project Team Lead electoral rolls. Change-Id: I03e90e5c512ee463cfcc49f147ff523806ae05c7 Story: #2001094 Task: #4877 --- tools/owners.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/owners.py b/tools/owners.py index c432ea0581..c4c4d192f6 100644 --- a/tools/owners.py +++ b/tools/owners.py @@ -683,8 +683,9 @@ def main(argv=sys.argv): for field in ('count', 'newest', 'oldest'): output[owner][field] = projects[project][owner][field] - # Append preferred addresses to the PTL electoral rolls - electorate.append(owners[owner]['preferred'] + '\n') + # Append preferred member addresses to the PTL electoral rolls + if 'member' in owners[owner]: + electorate.append(owners[owner]['preferred'] + '\n') # Write out a team-specific YAML file fd = open(os.path.join(outdir, '%s.yaml' % normalized_project), 'w')