Skip to content

Commit

Permalink
Make -q and -qq silence ANSIBLE_DEVEL_WARNING (#1785)
Browse files Browse the repository at this point in the history
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
relrod and pre-commit-ci[bot] committed Dec 16, 2021
1 parent 8c372b6 commit 7023f91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ansiblelint/prerun.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,12 @@ def _prepare_ansible_paths() -> None:
_update_env(ansible_collections_path(), collection_list)
_update_env('ANSIBLE_ROLES_PATH', roles_path, default=ANSIBLE_DEFAULT_ROLES_PATH)

# If we are asking to run without warnings, then also silence certain
# Ansible warnings which could slip through, namely the devel branch
# warning.
if options.verbosity < 0:
_update_env("ANSIBLE_DEVEL_WARNING", ["False"])


def _make_module_stub(module_name: str) -> None:
# a.b.c is treated a collection
Expand Down

0 comments on commit 7023f91

Please sign in to comment.