Merge "Ignore EM releases in version-check.py"

This commit is contained in:
Zuul 2019-06-07 08:49:48 +00:00 committed by Gerrit Code Review
commit 9cfd3a88aa

View File

@ -87,6 +87,10 @@ def load_all_info(openstack_release):
if 'releases' in info and len(info['releases']) > 0: if 'releases' in info and len(info['releases']) > 0:
latest_release = info['releases'][-1] latest_release = info['releases'][-1]
latest_version = latest_release['version'] latest_version = latest_release['version']
if latest_version.endswith('-em') and len(info['releases']) > 1:
# Ignore Extended Maintenance (EM) releases, e.g. pike-em.
latest_release = info['releases'][-2]
latest_version = latest_release['version']
for project in latest_release['projects']: for project in latest_release['projects']:
project_name = project['repo'].split('/')[-1] project_name = project['repo'].split('/')[-1]