Do not use tempfiles for ansible lint (#3846)

* Used %s instead of std in

* Set lint_file to 1 for ansible-lint so it does not use temp files

* Fix test for ansible-lint
This commit is contained in:
Henrik Farre
2021-07-31 05:35:43 +02:00
committed by GitHub
parent dce088a4f0
commit 056fbd08f6
2 changed files with 3 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ Execute(The ansible_lint version <5.0.0 command callback should return default s
Execute(The ansible_lint version >=5.0.0 command callback should return default string):
GivenCommandOutput ['v5.1.2']
AssertLinter 'ansible-lint', ale#Escape('ansible-lint') . ' --nocolor --parseable-severity -x yaml -'
AssertLinter 'ansible-lint', ale#Escape('ansible-lint') . ' --nocolor --parseable-severity -x yaml %s'
Execute(The ansible_lint executable should be configurable):
let g:ale_ansible_ansible_lint_executable = '~/.local/bin/ansible-lint'