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

This is in line with the change from ansible/ansible#16087
pull/18777/head
Dag Wieers 9 years ago committed by Matt Clay
parent bca2a6cb56
commit 3d2ad47f55

@ -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):

Loading…
Cancel
Save