mirror of
https://github.com/thegeeklab/ansible-doctor.git
synced 2024-11-22 04:40:43 +00:00
fix to_bool arguments
This commit is contained in:
parent
b75546078e
commit
ce419e2125
@ -24,7 +24,7 @@ def to_bool(string):
|
|||||||
def _should_do_markup():
|
def _should_do_markup():
|
||||||
py_colors = os.environ.get("PY_COLORS", None)
|
py_colors = os.environ.get("PY_COLORS", None)
|
||||||
if py_colors is not None:
|
if py_colors is not None:
|
||||||
return to_bool(py_colors, strict=False)
|
return to_bool(py_colors)
|
||||||
|
|
||||||
return sys.stdout.isatty() and os.environ.get("TERM") != "dumb"
|
return sys.stdout.isatty() and os.environ.get("TERM") != "dumb"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user