From 9a79f8bdb76b061f0c6181602ab51d63e62f671a Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Mon, 27 May 2019 18:28:52 +0000 Subject: [PATCH] Custom projects in owners skips default legacy When supplying -p/--projects to the owners script for a custom projects list, assume this means not to apply the default legacy projects list. If -l/--legacy is also supplied, the indicated custom legacy projects are still incorporated into the results. Change-Id: I383317c8fdac3f6d8cfa2972326ff9fb9f64ab39 --- openstack_election/owners.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openstack_election/owners.py b/openstack_election/owners.py index 90a917bc..abe640e7 100644 --- a/openstack_election/owners.py +++ b/openstack_election/owners.py @@ -193,6 +193,8 @@ def main(options): # later than the after parameter for the qualifying time period if legacy_file: old_projects = utils.load_yaml(open(legacy_file).read()) + elif projects_file: + old_projects = [] else: old_projects = utils.get_from_cgit('openstack/governance', 'reference/legacy.yaml',