We have the possibility of having a CentOS8 system, make sure the check
takes that into account.
Change-Id: Iff30b8c9b0505443e280000902b10bc23940c0fa
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
with open(filename, "r") as _file:
for num, line in enumerate(_file, 1):
with open(filename, "r") as _file:
for num, line in enumerate(_file, 1):
- if re.search("centos7-robot", line):
+ if re.search("centos[78]-robot", line):
robots.add(line.rsplit(maxsplit=1)[1])
return robots
robots.add(line.rsplit(maxsplit=1)[1])
return robots