def __virtual__():
    if not any(['logstash_udp_handler' in __opts__,
                'logstash_zmq_handler' in __opts__]):
        log.trace(
            'None of the required configuration sections, '
            '\'logstash_udp_handler\' and \'logstash_zmq_handler\', '
            'were found in the configuration. Not loading the Logstash '
            'logging handlers module.'
        )
        return False
    return __virtualname__
dataset/ETHPy150Open saltstack/salt/salt/log/handlers/logstash_mod.py/__virtual__/original