mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02: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:
parent
bca2a6cb56
commit
3d2ad47f55
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue