salt.log.handlers.logstash_mod is now using __virtualname__

This commit is contained in:
Pedro Algarvio 2013-10-17 14:34:26 +01:00
parent 85b871313f
commit 845d560816

View File

@ -125,6 +125,9 @@ from salt.log.mixins import NewStyleClassMixIn
log = logging.getLogger(__name__)
# Define the module's virtual name
__virtualname__ = 'logstash'
def __virtual__():
if not any(['logstash_udp_handler' in __opts__,
@ -136,7 +139,7 @@ def __virtual__():
'logging handlers module.'
)
return False
return 'logstash'
return __virtualname__
def setup_handlers():