on windows, switch so that colors are off by default, since it isn’t supported by the default console. —force-color can still be used if it is needed.

This commit is contained in:
Matthew Hopkins 2014-01-08 10:30:34 -05:00
parent 8a5b4ae780
commit 7f197c568c

View File

@ -77,7 +77,7 @@ def get_printout(out, opts=None, **kwargs):
if opts.get('force_color', False): if opts.get('force_color', False):
opts['color'] = True opts['color'] = True
elif opts.get('no_color', False) or is_pipe(): elif opts.get('no_color', False) or is_pipe() or salt.utils.is_windows():
opts['color'] = False opts['color'] = False
else: else:
opts['color'] = True opts['color'] = True