From b41258af25645ce6a403b6523fbfa22521e77782 Mon Sep 17 00:00:00 2001 From: "Dr. Jens Harbott" Date: Thu, 25 Jan 2024 09:48:32 +0100 Subject: [PATCH] Fix validation when moving to unmaintained Deliverables with model="untagged" or stable-branch-type="tagless" don't have any series that needs to start with .0, so skip the corresponding validation for them. Change-Id: I8bd946eabf5f85dc003acca6188427a16396c8a6 --- openstack_releases/cmds/validate.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openstack_releases/cmds/validate.py b/openstack_releases/cmds/validate.py index 4b9493a193..a2200a363e 100644 --- a/openstack_releases/cmds/validate.py +++ b/openstack_releases/cmds/validate.py @@ -264,6 +264,14 @@ def validate_series_open(deliv, context): def validate_series_first(deliv, context): "The first release in a series needs to end with '.0'." + if deliv.model == 'untagged': + print('this rule does not apply to untagged deliverables') + return + + if deliv.stable_branch_type == 'tagless': + print('this rule does not apply to tagless deliverables') + return + if deliv.type == 'tempest-plugin': print('this rule does not apply to branchless tempest plugins') return