These fields are booleans.

This commit is contained in:
Michael DeHaan 2013-08-10 18:16:01 -04:00
commit baffa8df72
3 changed files with 7 additions and 7 deletions

View file

@ -20,7 +20,7 @@ import sys
import constants
ANSIBLE_COLOR=True
if constants.ANSIBLE_NOCOLOR is not None:
if constants.ANSIBLE_NOCOLOR:
ANSIBLE_COLOR=False
elif not hasattr(sys.stdout, 'isatty') or not sys.stdout.isatty():
ANSIBLE_COLOR=False