Adapt module to use new module._name property (#2408)

This is in line with the change from ansible/ansible#16087
This commit is contained in:
Dag Wieers 2016-06-10 17:44:18 +02:00 committed by Matt Clay
parent bca2a6cb56
commit 3d2ad47f55

View file

@ -122,7 +122,7 @@ class EjabberdUser(object):
def log(self, entry): def log(self, entry):
""" This method will log information to the local syslog facility """ """ This method will log information to the local syslog facility """
if self.logging: if self.logging:
syslog.openlog('ansible-%s' % os.path.basename(__file__)) syslog.openlog('ansible-%s' % self.module._name)
syslog.syslog(syslog.LOG_NOTICE, entry) syslog.syslog(syslog.LOG_NOTICE, entry)
def run_command(self, cmd, options): def run_command(self, cmd, options):