mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-31 21:39:10 -07:00
Fix invalid string escape sequences.
This commit is contained in:
parent
f9cd50411f
commit
e45c763b64
48 changed files with 77 additions and 77 deletions
|
@ -297,9 +297,9 @@ class LinuxNetwork(Network):
|
|||
args = [ethtool_path, '-T', device]
|
||||
rc, stdout, stderr = self.module.run_command(args, errors='surrogate_then_replace')
|
||||
if rc == 0:
|
||||
data['timestamping'] = [m.lower() for m in re.findall('SOF_TIMESTAMPING_(\w+)', stdout)]
|
||||
data['hw_timestamp_filters'] = [m.lower() for m in re.findall('HWTSTAMP_FILTER_(\w+)', stdout)]
|
||||
m = re.search('PTP Hardware Clock: (\d+)', stdout)
|
||||
data['timestamping'] = [m.lower() for m in re.findall(r'SOF_TIMESTAMPING_(\w+)', stdout)]
|
||||
data['hw_timestamp_filters'] = [m.lower() for m in re.findall(r'HWTSTAMP_FILTER_(\w+)', stdout)]
|
||||
m = re.search(r'PTP Hardware Clock: (\d+)', stdout)
|
||||
if m:
|
||||
data['phc_index'] = int(m.groups()[0])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue