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 = (
|
STATIC = (
|
||||||
'yaml_out',
|
'yaml_out',
|
||||||
'txt_out',
|
'text_out',
|
||||||
'raw_out',
|
'raw_out',
|
||||||
'json_out',
|
'json_out',
|
||||||
)
|
)
|
||||||
@ -28,7 +28,10 @@ def get_printout(out, opts=None, **kwargs):
|
|||||||
for outputter in STATIC:
|
for outputter in STATIC:
|
||||||
if outputter in opts:
|
if outputter in opts:
|
||||||
if opts[outputter]:
|
if opts[outputter]:
|
||||||
out = outputter
|
if outputter == 'text_out':
|
||||||
|
out = 'txt'
|
||||||
|
else:
|
||||||
|
out = outputter
|
||||||
if out is None:
|
if out is None:
|
||||||
out = 'pprint'
|
out = 'pprint'
|
||||||
if out.endswith('_out'):
|
if out.endswith('_out'):
|
||||||
|
Loading…
Reference in New Issue
Block a user