mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 22:21:10 +02:00
build_library/disk_util: Fix a warning
Python warns about an invalid escaped sequence (\s) within a string - make the string raw, so python stops treating backslashes as special characters. Signed-off-by: Krzesimir Nowak <knowak@microsoft.com>
This commit is contained in:
parent
a0fc0432ee
commit
41b3553153
@ -799,7 +799,7 @@ def Verity(options):
|
||||
'--hash-offset', part['fs_bytes'],
|
||||
loop_dev, loop_dev]).decode('utf8')
|
||||
print(verityout.strip())
|
||||
m = re.search("Root hash:\s+([a-f0-9]{64})$", verityout, re.IGNORECASE|re.MULTILINE)
|
||||
m = re.search(r'Root hash:\s+([a-f0-9]{64})$', verityout, re.IGNORECASE|re.MULTILINE)
|
||||
if not m:
|
||||
raise Exception("Failed to parse verity output!")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user