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
24f6f656
Commit
24f6f656
authored
Aug 04, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bug8392' of
git://github.com/gnosek/ansible
into devel
parents
c5f92597
7f33580e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/ansible/utils/__init__.py
+2
-2
No files found.
lib/ansible/utils/__init__.py
View file @
24f6f656
...
...
@@ -1041,11 +1041,11 @@ def filter_leading_non_json_lines(buf):
filter only leading lines since multiline JSON is valid.
'''
kv_regex
=
re
.
compile
(
r'
.*\w+=\w+.*
'
)
kv_regex
=
re
.
compile
(
r'
\w=\w
'
)
filtered_lines
=
StringIO
.
StringIO
()
stop_filtering
=
False
for
line
in
buf
.
splitlines
():
if
stop_filtering
or
kv_regex
.
match
(
line
)
or
line
.
startswith
(
'{'
)
or
line
.
startswith
(
'['
):
if
stop_filtering
or
line
.
startswith
(
'{'
)
or
line
.
startswith
(
'['
)
or
kv_regex
.
search
(
line
):
stop_filtering
=
True
filtered_lines
.
write
(
line
+
'
\n
'
)
return
filtered_lines
.
getvalue
()
...
...
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