Rename logstash engine filename to make it work with the loader

This commit is contained in:
Erik Johnson 2018-10-01 11:22:59 -05:00
parent aca87abe40
commit 559cf1b874
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

View file

@ -30,16 +30,16 @@ import salt.utils.event
# Import third-party libs
try:
import logstash
HAS_LOGSTASH = True
except ImportError:
HAS_LOGSTASH = False
logstash = None
__virtualname__ = 'logstash'
def __virtual__():
if not HAS_LOGSTASH:
return False
else:
return True
return __virtualname__ \
if logstash is not None \
else (False, 'python-logstash not installed')
log = logging.getLogger(__name__)