mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 13:21:25 -07:00
Disable ansible color output on sanity tests.
This commit is contained in:
parent
f689cca0b8
commit
cfd313bced
2 changed files with 6 additions and 8 deletions
|
@ -7,9 +7,10 @@ import os
|
|||
from lib.util import common_environment
|
||||
|
||||
|
||||
def ansible_environment(args):
|
||||
def ansible_environment(args, color=True):
|
||||
"""
|
||||
:type args: CommonConfig
|
||||
:type color: bool
|
||||
:rtype: dict[str, str]
|
||||
"""
|
||||
env = common_environment()
|
||||
|
@ -21,7 +22,7 @@ def ansible_environment(args):
|
|||
path = ansible_path + os.pathsep + path
|
||||
|
||||
ansible = dict(
|
||||
ANSIBLE_FORCE_COLOR='%s' % 'true' if args.color else 'false',
|
||||
ANSIBLE_FORCE_COLOR='%s' % 'true' if args.color and color else 'false',
|
||||
ANSIBLE_DEPRECATION_WARNINGS='false',
|
||||
ANSIBLE_CONFIG='/dev/null',
|
||||
ANSIBLE_HOST_KEY_CHECKING='false',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue