Skip to content

Commit

Permalink
Avoid ansible@devel console noise (#2565)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Oct 6, 2022
1 parent cffdc39 commit 96f41d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ansiblelint/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ def initialize_options(arguments: list[str] | None = None) -> None:
)
sys.exit(LOCK_TIMEOUT_RC)

# Avoid extra output noise from Ansible about using devel versions
if "ANSIBLE_DEVEL_WARNING" not in os.environ:
os.environ["ANSIBLE_DEVEL_WARNING"] = "false"


def _do_list(rules: RulesCollection) -> int:
# On purpose lazy-imports to avoid pre-loading Ansible
Expand Down

0 comments on commit 96f41d4

Please sign in to comment.