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

This is in line with the change from ansible/ansible#16087
reviewable/pr18780/r1
Dag Wieers 9 years ago committed by Brian Coca
parent 883ccbefe5
commit 1563b727a4

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

Loading…
Cancel
Save