parent
181526847e
commit
b6222abee6
1 changed files with 2 additions and 2 deletions
|
@ -814,10 +814,10 @@ class AnsibleModule(object):
|
||||||
except IOError, e:
|
except IOError, e:
|
||||||
# fall back to syslog since logging to journal failed
|
# fall back to syslog since logging to journal failed
|
||||||
syslog.openlog(str(module), 0, syslog.LOG_USER)
|
syslog.openlog(str(module), 0, syslog.LOG_USER)
|
||||||
syslog.syslog(syslog.LOG_NOTICE, msg.decode('utf8').encode('utf8'))
|
syslog.syslog(syslog.LOG_NOTICE, unicode(msg).encode('utf8'))
|
||||||
else:
|
else:
|
||||||
syslog.openlog(str(module), 0, syslog.LOG_USER)
|
syslog.openlog(str(module), 0, syslog.LOG_USER)
|
||||||
syslog.syslog(syslog.LOG_NOTICE, msg.decode('utf8').encode('utf8'))
|
syslog.syslog(syslog.LOG_NOTICE, unicode(msg).encode('utf8'))
|
||||||
|
|
||||||
def get_bin_path(self, arg, required=False, opt_dirs=[]):
|
def get_bin_path(self, arg, required=False, opt_dirs=[]):
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in a new issue