From b4809462aa6de919c7dda50a8eea5cc30bfaa753 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 10 Mar 2021 19:51:44 +0000 Subject: [PATCH] Omit leaderless list from TC election results The close_election command treats TC elections as a single-team PTL election, essentially. The leaderless list, however, is generated from the full list of projects included in an election which, in a parallel TC/PTL election will include more projects than just the TC. Rather than heavily refactor the utility function where that data is summarized, just delete the leaderless list from the election results when reporting for the TC round in a parallel TC/PTL election. Change-Id: Ia8bb11addb9f70283b3e676d90e5e7b48494b8e1 --- openstack_election/cmds/close_election.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openstack_election/cmds/close_election.py b/openstack_election/cmds/close_election.py index 7a0dcc6b..21a7de7a 100755 --- a/openstack_election/cmds/close_election.py +++ b/openstack_election/cmds/close_election.py @@ -32,6 +32,7 @@ def process(db, round): dirty = True db['projects'] = ['TC'] db['candidates'] = {'TC': db['candidates']['TC']} + del db['leaderless'] if round == 'ptl' and 'TC' in db['projects']: dirty = True db['projects'].remove('TC')