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
This commit is contained in:
Jeremy Stanley 2019-05-27 18:28:52 +00:00
parent 9aec3509aa
commit 9a79f8bdb7
1 changed files with 2 additions and 0 deletions

View File

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