mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-25 14:20:45 +00:00
fix: remove yaml loader from yamllint as this results in always pass (#153)
This commit is contained in:
parent
e74cd668d9
commit
e52ec3c034
@ -246,14 +246,6 @@ class StandardBase(object, metaclass=StandardExtendedMeta):
|
||||
if not candidate.faulty:
|
||||
try:
|
||||
with codecs.open(candidate.path, mode="rb", encoding="utf-8") as f:
|
||||
yaml.add_constructor(
|
||||
UnsafeTag.yaml_tag, UnsafeTag.yaml_constructor, Loader=yaml.SafeLoader
|
||||
)
|
||||
yaml.add_constructor(
|
||||
VaultTag.yaml_tag, VaultTag.yaml_constructor, Loader=yaml.SafeLoader
|
||||
)
|
||||
yaml.safe_load(f)
|
||||
|
||||
for problem in linter.run(f, YamlLintConfig(options)):
|
||||
errors.append(StandardBase.Error(problem.line, problem.desc))
|
||||
except yaml.YAMLError as e:
|
||||
|
Loading…
Reference in New Issue
Block a user