include governed projects in output

In 0ba83e5 we started trying to ignore unofficial projects and
introduced a bug so that all projects were dropped from the project
list as part of that evaluation. This patch fixes the bug by copying
the valid data from the raw values read in to the list of values being
passed to the template.

Change-Id: I4aeafe6d8116f3b032a5d339660878a76a10e2f3
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-01-26 09:52:36 -05:00
parent 7f7c93a39c
commit 7890d18566
1 changed files with 4 additions and 0 deletions

View File

@ -225,6 +225,7 @@ def load_project_data(source_directory,
data = []
for project in raw_data:
deliverable_name = project.get('deliverable-name', project['name'])
if (series == 'latest' and
deliverable_name not in governed_deliverables):
logger.warning(
@ -232,6 +233,9 @@ def load_project_data(source_directory,
'ignoring in %s'),
deliverable_name, filename)
continue
logger.info('including %s', deliverable_name)
data.append(project)
# If the project has a service-type set, ensure it matches
# the value in the service-type-authority data.base.
st = project.get('service_type')