mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
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:
parent
8a5b4ae780
commit
7f197c568c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user