Always return a valid function

This commit is contained in:
Thomas S Hatch 2012-10-24 19:36:35 -06:00
parent fce156a324
commit 838b78c68d

View File

@ -27,5 +27,5 @@ def get_printout(out, opts=None, **kwargs):
opts['color'] = not bool(opts.get('no_color', False))
outputters = salt.loader.outputters(opts)
if not out in outputters:
return None
return outputters['pprint']
return outputters[out]