Teach check_robot.py about CentOS8 16/102016/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 9 Aug 2022 12:15:27 +0000 (14:15 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 9 Aug 2022 12:22:23 +0000 (14:22 +0200)
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>
check_robot.py

index 0dcadb865eec22b34141f27c995ce918735e58a9..56d2f7033454380dba3c8abbc40ec71851dfe491 100755 (executable)
@@ -32,7 +32,7 @@ def get_robot_systems(filename):
 
     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