mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
survey.hash: Remove manually printed text
* survey.hash should output based on the --out flag * --out=json prints valid json, etc * Partially Fixes #24460
This commit is contained in:
parent
bd14d85636
commit
439ee9831c
1 changed files with 1 additions and 14 deletions
|
@ -49,20 +49,7 @@ def hash(*args, **kwargs):
|
|||
salt-run survey.hash "*" file.get_hash /etc/salt/minion survey_sort=up
|
||||
'''
|
||||
|
||||
bulk_ret = _get_pool_results(*args, **kwargs)
|
||||
for k in bulk_ret:
|
||||
print('minion pool :\n'
|
||||
'------------')
|
||||
print(k['pool'])
|
||||
print('pool size :\n'
|
||||
'----------')
|
||||
print(' ' + str(len(k['pool'])))
|
||||
print('pool result :\n'
|
||||
'-------')
|
||||
print(' ' + str(k['result']))
|
||||
print('\n')
|
||||
|
||||
return bulk_ret
|
||||
return _get_pool_results(*args, **kwargs)
|
||||
|
||||
|
||||
def diff(*args, **kwargs):
|
||||
|
|
Loading…
Add table
Reference in a new issue