mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
dist/common/scripts/scylla_sysconfig_setup: fix SyntaxWarning: invalid escape sequence
There are invalid escape sequence warnings where raw strings should be used for the regex patterns Fixes: https://github.com/scylladb/scylladb/issues/24915 Closes scylladb/scylladb#24916
This commit is contained in:
committed by
Patryk Jędrzejczak
parent
692b79bb7d
commit
fdcaa9a7e7
4
dist/common/scripts/scylla_sysconfig_setup
vendored
4
dist/common/scripts/scylla_sysconfig_setup
vendored
@@ -86,9 +86,9 @@ if __name__ == '__main__':
|
||||
ethpciid = ''
|
||||
if network_mode == 'dpdk':
|
||||
dpdk_status = out('/opt/scylladb/scripts/dpdk-devbind.py --status')
|
||||
match = re.search('if={} drv=(\S+)'.format(ifname), dpdk_status, flags=re.MULTILINE)
|
||||
match = re.search(r'if={} drv=(\S+)'.format(ifname), dpdk_status, flags=re.MULTILINE)
|
||||
ethdrv = match.group(1)
|
||||
match = re.search('^(\\S+:\\S+:\\S+\.\\S+) [^\n]+ if={} '.format(ifname), dpdk_status, flags=re.MULTILINE)
|
||||
match = re.search(r'^(\S+:\S+:\S+\.\S+) [^\n]+ if={} '.format(ifname), dpdk_status, flags=re.MULTILINE)
|
||||
ethpciid = match.group(1)
|
||||
|
||||
if args.mode:
|
||||
|
||||
Reference in New Issue
Block a user