def ping():
    try:
        response = salt.utils.http.query(
            "{0}/scheduler/jobs".format(CONFIG[CONFIG_BASE_URL]),
            decode_type='json',
            decode=True,
        )
        log.debug(
            'chronos.info returned succesfully: %s',
            response,
        )
        if 'dict' in response:
            return True
    except Exception as ex:
        log.error(
            'error pinging chronos with base_url %s: %s',
            CONFIG[CONFIG_BASE_URL],
            ex,
        )
    return False
The content character set encoding.
dataset/ETHPy150Open saltstack/salt/salt/proxy/chronos.py/ping--crossover with--dataset/ETHPy150Open nigelsmall/httpstream/httpstream/http.py/Response.encoding