mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
salt.log.handlers.logstash_mod
is now using __virtualname__
This commit is contained in:
parent
85b871313f
commit
845d560816
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user