mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Always return a valid function
This commit is contained in:
parent
fce156a324
commit
838b78c68d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue