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
32a1dd42
Commit
32a1dd42
authored
Sep 30, 2013
by
jctanner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4269 from jphalip/issue-4256
In the script action: Get around a Python bug.
parents
7aad576f
44aeea7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
lib/ansible/runner/action_plugins/script.py
+5
-1
No files found.
lib/ansible/runner/action_plugins/script.py
View file @
32a1dd42
...
...
@@ -36,7 +36,11 @@ class ActionModule(object):
# in check mode, always skip this module
return
ReturnData
(
conn
=
conn
,
comm_ok
=
True
,
result
=
dict
(
skipped
=
True
,
msg
=
'check mode not supported for this module'
))
tokens
=
shlex
.
split
(
module_args
)
# Decode the result of shlex.split() to UTF8 to get around a bug in that's been fixed in Python 2.7 but not Python 2.6.
# See: http://bugs.python.org/issue6988
tokens
=
shlex
.
split
(
module_args
.
encode
(
'utf8'
))
tokens
=
[
s
.
decode
(
'utf8'
)
for
s
in
tokens
]
source
=
tokens
[
0
]
# FIXME: error handling
args
=
" "
.
join
(
tokens
[
1
:])
...
...
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