From: Kyr Shatskyy Date: Sat, 3 Aug 2024 18:24:27 +0000 (+0200) Subject: task/kernel: fix invalid escape sequence X-Git-Tag: 1.2.0~7^2~6 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=bdc7c126831275b4a364e3603d8abf7d834e1e0b;p=teuthology.git task/kernel: fix invalid escape sequence Signed-off-by: Kyr Shatskyy --- diff --git a/teuthology/task/kernel.py b/teuthology/task/kernel.py index ca4718784c..59242d31b4 100644 --- a/teuthology/task/kernel.py +++ b/teuthology/task/kernel.py @@ -1033,7 +1033,7 @@ def get_image_version(remote, path): raise UnsupportedPackageTypeError(remote) for file in files.split('\n'): - match = re.search('/lib/modules/(.*)/modules\.order$', file) + match = re.search(r'/lib/modules/(.*)/modules\.order$', file) if match: version = match.group(1) break