mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Even more debug logging for manage runner tests
This will show whether or not the test.ping was actually received by the minion, and whether or not the minion attempted to send the return back to the master.
This commit is contained in:
parent
0685d72e3a
commit
8d85d7a898
@ -1547,6 +1547,7 @@ class Minion(MinionBase):
|
||||
else:
|
||||
data['ret'] = opts['return']
|
||||
|
||||
log.debug('minion return: %s', ret)
|
||||
# TODO: make a list? Seems odd to split it this late :/
|
||||
if data['ret'] and isinstance(data['ret'], six.string_types):
|
||||
if 'ret_config' in data:
|
||||
|
@ -5,6 +5,7 @@ Module for running arbitrary tests
|
||||
from __future__ import absolute_import
|
||||
|
||||
# Import Python libs
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
@ -27,6 +28,8 @@ __func_alias__ = {
|
||||
'false_': 'false'
|
||||
}
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@depends('non_existantmodulename')
|
||||
def missing_func():
|
||||
@ -112,6 +115,7 @@ def ping():
|
||||
'''
|
||||
|
||||
if not salt.utils.is_proxy():
|
||||
log.debug('test.ping received for minion \'%s\'', __opts__.get('id'))
|
||||
return True
|
||||
else:
|
||||
ping_cmd = __opts__['proxy']['proxytype'] + '.ping'
|
||||
|
Loading…
Reference in New Issue
Block a user