mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-25 06:10:42 +00:00
fix: exclude lines containing '!unsafe' from ANSIBLE0004
This commit is contained in:
parent
5012e2d919
commit
204fd46304
@ -24,6 +24,8 @@ def check_braces_spaces(candidate, settings):
|
||||
|
||||
if not errors:
|
||||
for i, line in yamllines:
|
||||
if "!unsafe" in line:
|
||||
continue
|
||||
match = braces.findall(line)
|
||||
if match:
|
||||
for item in match:
|
||||
|
Loading…
Reference in New Issue
Block a user