mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Print the output for the pillar.show_top runner
This commit is contained in:
parent
ac571170c4
commit
42330ad044
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user