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
95e045d1
Commit
95e045d1
authored
Apr 11, 2012
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove remote logging as we're going to move this logging to the modules for performance reasons.
parent
245aa9bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
lib/ansible/runner.py
+0
-9
No files found.
lib/ansible/runner.py
View file @
95e045d1
...
@@ -387,11 +387,6 @@ class Runner(object):
...
@@ -387,11 +387,6 @@ class Runner(object):
else
:
else
:
cmd
=
" "
.
join
([
str
(
x
)
for
x
in
[
remote_module_path
,
async_jid
,
async_limit
,
async_module
,
argsfile
]])
cmd
=
" "
.
join
([
str
(
x
)
for
x
in
[
remote_module_path
,
async_jid
,
async_limit
,
async_module
,
argsfile
]])
# log command as the full command not as the path to args file - helps with debugging
msg
=
'
%
s: "
%
s"'
%
(
self
.
module_name
,
args
)
conn
.
exec_command
(
'/usr/bin/logger -t ansible -p auth.info "
%
s"'
%
msg
,
None
)
res
,
err
=
self
.
_exec_command
(
conn
,
cmd
,
tmp
,
sudoable
=
True
)
res
,
err
=
self
.
_exec_command
(
conn
,
cmd
,
tmp
,
sudoable
=
True
)
client_executed_str
=
"
%
s
%
s"
%
(
module_name_tail
,
args
.
strip
())
client_executed_str
=
"
%
s
%
s"
%
(
module_name_tail
,
args
.
strip
())
return
(
res
,
err
,
client_executed_str
)
return
(
res
,
err
,
client_executed_str
)
...
@@ -642,10 +637,6 @@ class Runner(object):
...
@@ -642,10 +637,6 @@ class Runner(object):
def
_exec_command
(
self
,
conn
,
cmd
,
tmp
,
sudoable
=
False
):
def
_exec_command
(
self
,
conn
,
cmd
,
tmp
,
sudoable
=
False
):
''' execute a command string over SSH, return the output '''
''' execute a command string over SSH, return the output '''
msg
=
'
%
s:
%
s'
%
(
self
.
module_name
,
cmd
)
# log remote command execution
conn
.
exec_command
(
'/usr/bin/logger -t ansible -p auth.info "
%
s"'
%
msg
,
None
)
# now run actual command
stdin
,
stdout
,
stderr
=
conn
.
exec_command
(
cmd
,
tmp
,
sudoable
=
sudoable
)
stdin
,
stdout
,
stderr
=
conn
.
exec_command
(
cmd
,
tmp
,
sudoable
=
sudoable
)
if
type
(
stderr
)
!=
str
:
if
type
(
stderr
)
!=
str
:
...
...
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