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
64bbeb9d
Commit
64bbeb9d
authored
Oct 19, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suggest fixing unbalanced quotes in a bit less cases. Fixes #4501
parent
7f9504d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
lib/ansible/utils/__init__.py
+1
-3
No files found.
lib/ansible/utils/__init__.py
View file @
64bbeb9d
...
@@ -390,7 +390,6 @@ Or:
...
@@ -390,7 +390,6 @@ Or:
return
msg
return
msg
else
:
else
:
parts
=
probline
.
split
(
":"
)
parts
=
probline
.
split
(
":"
)
print
parts
if
len
(
parts
)
>
1
:
if
len
(
parts
)
>
1
:
middle
=
parts
[
1
]
.
strip
()
middle
=
parts
[
1
]
.
strip
()
match
=
False
match
=
False
...
@@ -399,9 +398,8 @@ Or:
...
@@ -399,9 +398,8 @@ Or:
match
=
True
match
=
True
elif
middle
.
startswith
(
'"'
)
and
not
middle
.
endswith
(
'"'
):
elif
middle
.
startswith
(
'"'
)
and
not
middle
.
endswith
(
'"'
):
match
=
True
match
=
True
if
middle
[
0
]
in
[
'"'
,
"'"
]
and
middle
[
-
1
]
in
[
'"'
,
"'"
]:
if
middle
[
0
]
in
[
'"'
,
"'"
]
and
middle
[
-
1
]
in
[
'"'
,
"'"
]
and
probline
.
count
(
"'"
)
>
2
or
probline
.
count
(
"'"
)
>
2
:
unbalanced
=
True
unbalanced
=
True
if
match
:
if
match
:
msg
=
msg
+
"""
msg
=
msg
+
"""
This one looks easy to fix. It seems that there is a value started
This one looks easy to fix. It seems that there is a value started
...
...
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