mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Ignore W1401 (anomalous-backslash-in-string)
This commit is contained in:
parent
2e929a5ecc
commit
5d0454a7ca
1 changed files with 2 additions and 2 deletions
|
@ -170,7 +170,7 @@ def ext_pillar(minion_id,
|
|||
if minion_id not in minions:
|
||||
return {}
|
||||
|
||||
root_re = re.compile('root=(\S*)')
|
||||
root_re = re.compile('root=(\S*)') # pylint: disable=W1401
|
||||
match = root_re.search(temp)
|
||||
if match:
|
||||
opts['root'] = match.group(1)
|
||||
|
@ -178,7 +178,7 @@ def ext_pillar(minion_id,
|
|||
else:
|
||||
opts['root'] = ""
|
||||
|
||||
profile_re = re.compile('(?:profile=)?(\S+)')
|
||||
profile_re = re.compile('(?:profile=)?(\S+)') # pylint: disable=W1401
|
||||
match = profile_re.search(temp)
|
||||
if match:
|
||||
opts['profile'] = match.group(1)
|
||||
|
|
Loading…
Add table
Reference in a new issue