mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Fix invalid string escape sequences.
This commit is contained in:
@@ -29,7 +29,7 @@ def get_sysctl(module, prefixes):
|
||||
for line in out.splitlines():
|
||||
if not line:
|
||||
continue
|
||||
(key, value) = re.split('\s?=\s?|: ', line, maxsplit=1)
|
||||
(key, value) = re.split(r'\s?=\s?|: ', line, maxsplit=1)
|
||||
sysctl[key] = value.strip()
|
||||
|
||||
return sysctl
|
||||
|
||||
Reference in New Issue
Block a user