diff --git a/lib/ansible/module_common.py b/lib/ansible/module_common.py index 51fb1f7499..d6ed081fae 100644 --- a/lib/ansible/module_common.py +++ b/lib/ansible/module_common.py @@ -549,7 +549,7 @@ class AnsibleModule(object): journal.sendv(*journal_args) else: msg = '' - syslog.openlog('ansible-%s' % os.path.basename(__file__), 0, syslog.LOG_USER) + syslog.openlog('ansible-%s' % str(os.path.basename(__file__)), 0, syslog.LOG_USER) for arg in log_args: msg = msg + arg + '=' + str(log_args[arg]) + ' ' if msg: