Print the output for the pillar.show_top runner

This commit is contained in:
Colton Myers 2013-12-14 14:43:45 -07:00
parent ac571170c4
commit 42330ad044

View File

@ -6,6 +6,7 @@ Functions to interact with the pillar compiler on the master
# Import salt libs # Import salt libs
import salt.pillar import salt.pillar
import salt.utils.minions import salt.utils.minions
import salt.output
def show_top(minion=None, saltenv='base'): def show_top(minion=None, saltenv='base'):
@ -29,6 +30,8 @@ def show_top(minion=None, saltenv='base'):
top, errors = pillar.get_top() top, errors = pillar.get_top()
if errors: if errors:
salt.output.display_output(errors, 'nested', __opts__)
return errors return errors
salt.output.display_output(top, 'nested', __opts__)
return top return top