mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
fix translation of the test output system
This commit is contained in:
parent
1fa5129b90
commit
87d155e944
@ -9,7 +9,7 @@ import salt.loader
|
||||
|
||||
STATIC = (
|
||||
'yaml_out',
|
||||
'txt_out',
|
||||
'text_out',
|
||||
'raw_out',
|
||||
'json_out',
|
||||
)
|
||||
@ -28,6 +28,9 @@ def get_printout(out, opts=None, **kwargs):
|
||||
for outputter in STATIC:
|
||||
if outputter in opts:
|
||||
if opts[outputter]:
|
||||
if outputter == 'text_out':
|
||||
out = 'txt'
|
||||
else:
|
||||
out = outputter
|
||||
if out is None:
|
||||
out = 'pprint'
|
||||
|
Loading…
Reference in New Issue
Block a user