fix translation of the test output system

This commit is contained in:
Thomas S Hatch 2012-10-24 23:08:57 -06:00
parent 1fa5129b90
commit 87d155e944

View File

@ -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'