add tooling to list em series from data

Change-Id: I114f08c0c1c38a31f34d798562dd530910bcd3d5
This commit is contained in:
Hervé Beraud
2020-10-29 17:19:34 +01:00
parent 87c71eebd4
commit d8aba0991d
4 changed files with 40 additions and 0 deletions

View File

@@ -47,6 +47,10 @@ class Series(object):
def eol_date(self):
return self._data.get('eol-date', None)
@property
def is_em(self):
return self.status == 'extended maintenance'
class SeriesStatus(collections.abc.Mapping):