mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fixing output so --force-color and --no-color override master and minion config color value
This commit is contained in:
parent
07c2793e86
commit
ee3bc6eb10
@ -168,6 +168,13 @@ def get_printout(out, opts=None, **kwargs):
|
||||
opts['color'] = False
|
||||
else:
|
||||
opts['color'] = True
|
||||
else:
|
||||
if opts.get('force_color', False):
|
||||
opts['color'] = True
|
||||
elif opts.get('no_color', False) or salt.utils.is_windows():
|
||||
opts['color'] = False
|
||||
else:
|
||||
pass
|
||||
|
||||
outputters = salt.loader.outputters(opts)
|
||||
if out not in outputters:
|
||||
|
Loading…
Reference in New Issue
Block a user