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:
Erik Johnson 2017-06-06 12:10:22 -05:00
parent 0685d72e3a
commit 8d85d7a898
2 changed files with 5 additions and 0 deletions

View File

@ -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:

View File

@ -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'