From 1d19c7bf8c2e390c5b01307b0742b913148541bf Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Tue, 12 Jun 2018 11:03:51 -0400 Subject: [PATCH] have list-deliverables support past milestones Don't assume the missing milestone or RC is supposed to be the most recent tag. Change-Id: Ib446426e263ccf2dbd0cb92b2819162319acb8f7 Signed-off-by: Doug Hellmann --- openstack_releases/cmds/list_deliverables.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/openstack_releases/cmds/list_deliverables.py b/openstack_releases/cmds/list_deliverables.py index e555fb0d15..2c350b4660 100644 --- a/openstack_releases/cmds/list_deliverables.py +++ b/openstack_releases/cmds/list_deliverables.py @@ -194,8 +194,14 @@ def main(): continue if args.unreleased and (deliv.is_released or not deliv.is_releasable): continue - if version_ending and deliv.is_released and deliv.latest_release.endswith(version_ending): - continue + if version_ending and deliv.is_released: + found = False + for release in deliv.releases: + if release.version.endswith(version_ending): + found = True + break + if found: + continue if args.missing_rc and deliv.is_released and 'rc' in deliv.latest_release: continue if args.tag: