Fix false positives in no-get-exception test.
This commit is contained in:
parent
d60d794411
commit
332dc6a93a
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ def main():
|
|||
|
||||
with open(path, 'r') as path_fd:
|
||||
for line, text in enumerate(path_fd.readlines()):
|
||||
match = re.search(r'(get_exception)', text)
|
||||
match = re.search(r'([^a-zA-Z0-9_]get_exception[^a-zA-Z0-9_])', text)
|
||||
|
||||
if match:
|
||||
if path == 'lib/ansible/module_utils/basic.py' and basic_allow_once:
|
||||
|
|
Loading…
Reference in a new issue