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
24b830bb
Commit
24b830bb
authored
Jul 13, 2015
by
Brian Coca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed executable for raw module
parent
c4b6d912
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
lib/ansible/plugins/action/__init__.py
+4
-8
No files found.
lib/ansible/plugins/action/__init__.py
View file @
24b830bb
...
...
@@ -412,26 +412,22 @@ class ActionBase:
debug
(
"done with _execute_module (
%
s,
%
s)"
%
(
module_name
,
module_args
))
return
data
def
_low_level_execute_command
(
self
,
cmd
,
tmp
,
sudoable
=
True
,
in_data
=
None
):
def
_low_level_execute_command
(
self
,
cmd
,
tmp
,
sudoable
=
True
,
in_data
=
None
,
executable
=
None
):
'''
This is the function which executes the low level shell command, which
may be commands to create/remove directories for temporary files, or to
run the module code or python directly when pipelining.
'''
if
executable
is
not
None
:
cmd
=
executable
+
' -c '
+
cmd
debug
(
"in _low_level_execute_command() (
%
s)"
%
(
cmd
,))
if
not
cmd
:
# this can happen with powershell modules when there is no analog to a Windows command (like chmod)
debug
(
"no command, exiting _low_level_execute_command()"
)
return
dict
(
stdout
=
''
,
stderr
=
''
)
#FIXME: disabled as this should happen in the connection plugin, verify before removing
#prompt = None
#success_key = None
#
#if sudoable:
# cmd, prompt, success_key = self._connection_info.make_become_cmd(cmd)
debug
(
"executing the command
%
s through the connection"
%
cmd
)
rc
,
stdin
,
stdout
,
stderr
=
self
.
_connection
.
exec_command
(
cmd
,
tmp
,
in_data
=
in_data
,
sudoable
=
sudoable
)
debug
(
"command execution done"
)
...
...
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