Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
301a1189
Commit
301a1189
authored
Dec 13, 2013
by
jctanner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5122 from willthames/openlog_str
Make first argument to syslog.openlog be a string
parents
66cad764
76aca4d5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/ansible/module_utils/basic.py
+2
-2
No files found.
lib/ansible/module_utils/basic.py
View file @
301a1189
...
@@ -776,10 +776,10 @@ class AnsibleModule(object):
...
@@ -776,10 +776,10 @@ class AnsibleModule(object):
journal
.
sendv
(
*
journal_args
)
journal
.
sendv
(
*
journal_args
)
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
(
module
,
0
,
syslog
.
LOG_USER
)
syslog
.
openlog
(
str
(
module
)
,
0
,
syslog
.
LOG_USER
)
syslog
.
syslog
(
syslog
.
LOG_NOTICE
,
msg
)
syslog
.
syslog
(
syslog
.
LOG_NOTICE
,
msg
)
else
:
else
:
syslog
.
openlog
(
module
,
0
,
syslog
.
LOG_USER
)
syslog
.
openlog
(
str
(
module
)
,
0
,
syslog
.
LOG_USER
)
syslog
.
syslog
(
syslog
.
LOG_NOTICE
,
msg
)
syslog
.
syslog
(
syslog
.
LOG_NOTICE
,
msg
)
def
get_bin_path
(
self
,
arg
,
required
=
False
,
opt_dirs
=
[]):
def
get_bin_path
(
self
,
arg
,
required
=
False
,
opt_dirs
=
[]):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment