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
e54b4b1c
Commit
e54b4b1c
authored
Nov 27, 2012
by
Daniel Hokka Zakrisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore arguments when checking for interpreter, and re-add before use
parent
d5a456fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lib/ansible/runner/__init__.py
+5
-2
No files found.
lib/ansible/runner/__init__.py
View file @
e54b4b1c
...
...
@@ -28,6 +28,7 @@ import collections
import
socket
import
base64
import
sys
import
shlex
import
ansible.constants
as
C
import
ansible.inventory
...
...
@@ -542,10 +543,12 @@ class Runner(object):
shebang
=
None
if
lines
[
0
]
.
startswith
(
"#!"
):
shebang
=
lines
[
0
]
interpreter_config
=
'ansible_
%
s_interpreter'
%
os
.
path
.
basename
(
shebang
)
args
=
shlex
.
split
(
str
(
shebang
[
2
:]))
interpreter
=
args
[
0
]
interpreter_config
=
'ansible_
%
s_interpreter'
%
os
.
path
.
basename
(
interpreter
)
if
interpreter_config
in
inject
:
lines
[
0
]
=
shebang
=
"#!
%
s
"
%
inject
[
interpreter_config
]
lines
[
0
]
=
shebang
=
"#!
%
s
%
s"
%
(
inject
[
interpreter_config
],
" "
.
join
(
args
[
1
:]))
module_data
=
"
\n
"
.
join
(
lines
)
self
.
_transfer_str
(
conn
,
tmp
,
module_name
,
module_data
)
...
...
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