Skip to content
Snippets Groups Projects
Commit 7c60ee54 authored by František Dvořák's avatar František Dvořák
Browse files

Workaround for non-blocking console in ansible linter

parent 9380fd84
No related branches found
No related tags found
1 merge request!52Megalinter checks
......@@ -15,6 +15,19 @@ DISABLE_LINTERS:
# requires terraform files, but without directories selection
- TERRAFORM_TERRASCAN
ANSIBLE_ANSIBLE_LINT_PRE_COMMANDS:
# workaround the problem with non-blocking console in ansible linter
- command: "sed -i 's/^\\(\\s*check_blocking_io()\\)/# \\1/' /venvs/ansible-lint/lib/python*/site-packages/ansible/cli/__init__.py"
run_before_linters: true
# debugging the problem with non-blocking console in ansible linter
- command: &unblock >
python3 -c
'import os;
[print("console %d blocking: %s -> True" % (i, os.get_blocking(i))) for i in range(0, 3)];
[os.set_blocking(i, True) for i in range(0, 3)];
'
run_before_linters: true
# yaml[octal-values]: bug
ANSIBLE_ANSIBLE_LINT_ARGUMENTS: >-
-x yaml[octal-values]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment