mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +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,6 +28,9 @@ 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]:
|
||||||
|
if outputter == 'text_out':
|
||||||
|
out = 'txt'
|
||||||
|
else:
|
||||||
out = outputter
|
out = outputter
|
||||||
if out is None:
|
if out is None:
|
||||||
out = 'pprint'
|
out = 'pprint'
|
||||||
|
Loading…
Reference in New Issue
Block a user