-
Bug
-
Resolution: Fixed
-
Major
-
None
Starting with ansible-lint version 6.1.0, the output format in PEP8 style has changed:
Old style:
roles/create_service/tasks/main.yml:41: no-changed-when Commands should not change things if nothing needs doing.
New style:
roles/create_service/tasks/main.yml:41: no-changed-when: Commands should not change things if nothing needs doing.
Difference: After name of linting rule is a additional colon before the role explanation.
The change in ansible lint is introduced in commit https://github.com/ansible/ansible-lint/commit/e6d4c5933fe83adb4e3c610dc02c8d2df0d79ab5
Steps to reproduce: Run ansible-lint -p in ansible project with warnings:
sh 'ansible-lint -p > ansiblelint_results.txt || exit 0' recordIssues(tools: [ansibleLint(pattern: 'ansiblelint_results.txt')], ...)