mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
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:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user