mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Always return a valid function
This commit is contained in:
parent
fce156a324
commit
838b78c68d
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user