diff --git a/openstack_releases/cmds/validate.py b/openstack_releases/cmds/validate.py index a2200a363e..90e81045d7 100644 --- a/openstack_releases/cmds/validate.py +++ b/openstack_releases/cmds/validate.py @@ -1197,9 +1197,9 @@ def validate_version_numbers(deliv, context): context.error( "LAST tag {} should match branch name (e.g {}-last)".format( release.version, deliv.series)) - if not deliv.series_info.is_em: + if not (deliv.series_info.is_em or deliv.series_info.is_eom): context.error( - "LAST tag {} aren't allowed on a series ({}) that are not EM".format( + "LAST tag {} aren't allowed on a series ({}) that are not EM or Unmaintained".format( release.version, deliv.series)) continue diff --git a/openstack_releases/series_status.py b/openstack_releases/series_status.py index 79e3212527..14b236d236 100644 --- a/openstack_releases/series_status.py +++ b/openstack_releases/series_status.py @@ -55,6 +55,10 @@ class Series(object): def is_em(self): return self.status == 'extended maintenance' + @property + def is_eom(self): + return self.status == 'unmaintained' + @property def is_maintained(self): return self.status == 'maintained' or self.status == 'development'