Skip to content

Commit aabd2ac

Browse files
markgoddardhrw
authored andcommitted
Ignore EM releases in version-check.py
We don't want to use Extended Maintenance (EM) tags, since these are just markers of a point in time and not available as released artifacts. Change-Id: If552f7ffc22d4b25769c14c083179eecf5a93158 (cherry picked from commit f528ad8)
1 parent cbfded8 commit aabd2ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/version-check.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ def load_all_info(openstack_release):
8787
if 'releases' in info and len(info['releases']) > 0:
8888
latest_release = info['releases'][-1]
8989
latest_version = latest_release['version']
90+
if latest_version.endswith('-em') and len(info['releases']) > 1:
91+
# Ignore Extended Maintenance (EM) releases, e.g. pike-em.
92+
latest_release = info['releases'][-2]
93+
latest_version = latest_release['version']
9094
for project in latest_release['projects']:
9195
project_name = project['repo'].split('/')[-1]
9296

0 commit comments

Comments
 (0)