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
cdd1cf59
Commit
cdd1cf59
authored
Feb 14, 2015
by
Toshio Kuratomi
Committed by
James Cammarata
Feb 17, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the to_nice_yaml filter to always return unicode strings
Fixes #10243
parent
b187676a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
lib/ansible/runner/filter_plugins/core.py
+3
-2
No files found.
lib/ansible/runner/filter_plugins/core.py
View file @
cdd1cf59
...
...
@@ -33,12 +33,13 @@ from distutils.version import LooseVersion, StrictVersion
from
ansible
import
errors
from
ansible.utils.hashing
import
md5s
,
checksum_s
from
ansible.utils.unicode
import
unicode_wrap
from
ansible.utils.unicode
import
unicode_wrap
,
to_unicode
def
to_nice_yaml
(
*
a
,
**
kw
):
'''Make verbose, human readable yaml'''
return
yaml
.
safe_dump
(
*
a
,
indent
=
4
,
allow_unicode
=
True
,
default_flow_style
=
False
,
**
kw
)
transformed
=
yaml
.
safe_dump
(
*
a
,
indent
=
4
,
allow_unicode
=
True
,
default_flow_style
=
False
,
**
kw
)
return
to_unicode
(
transformed
)
def
to_json
(
a
,
*
args
,
**
kw
):
''' Convert the value to JSON '''
...
...
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