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
94963290
Commit
94963290
authored
Jun 20, 2014
by
James Cammarata
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6981 from aliles/fix-localhost-executable-with-flags
Fix localhost tasks with complex executables
parents
d0a11597
a5507275
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lib/ansible/runner/connection_plugins/local.py
+3
-2
No files found.
lib/ansible/runner/connection_plugins/local.py
View file @
94963290
...
...
@@ -53,15 +53,16 @@ class Connection(object):
if
not
self
.
runner
.
sudo
or
not
sudoable
:
if
executable
:
local_cmd
=
[
executable
,
'-c'
,
cmd
]
local_cmd
=
executable
.
split
()
+
[
'-c'
,
cmd
]
else
:
local_cmd
=
cmd
else
:
local_cmd
,
prompt
,
success_key
=
utils
.
make_sudo_cmd
(
sudo_user
,
executable
,
cmd
)
executable
=
executable
.
split
()[
0
]
if
executable
else
None
vvv
(
"EXEC
%
s"
%
(
local_cmd
),
host
=
self
.
host
)
p
=
subprocess
.
Popen
(
local_cmd
,
shell
=
isinstance
(
local_cmd
,
basestring
),
cwd
=
self
.
runner
.
basedir
,
executable
=
executable
or
None
,
cwd
=
self
.
runner
.
basedir
,
executable
=
executable
,
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
...
...
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