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
e64de2ff
Commit
e64de2ff
authored
Dec 17, 2012
by
Gregory Duchatelet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix: in hosts with python-2.5, hash keys needs flatten string.
parent
89dab0b1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
library/async_status
+8
-0
No files found.
library/async_status
View file @
e64de2ff
...
...
@@ -49,6 +49,7 @@ author: Michael DeHaan
import
datetime
import
traceback
import
sys
def
main
():
...
...
@@ -89,6 +90,13 @@ def main():
if
not
'started'
in
data
:
data
[
'finished'
]
=
1
data
[
'ansible_job_id'
]
=
jid
# Fix error: TypeError: exit_json() keywords must be strings
if
sys
.
version_info
[
0
]
==
2
and
sys
.
version_info
[
1
]
<
6
:
for
k
in
data
.
keys
():
v
=
data
[
k
]
del
data
[
k
]
data
[
str
(
k
)]
=
v
module
.
exit_json
(
**
data
)
# this is magic, see lib/ansible/module_common.py
...
...
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