mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #6197 from risaacson/issues_5116
When looking for double colon len(line) must be longer then 1.
This commit is contained in:
commit
21b2f3395a
1 changed files with 1 additions and 1 deletions
|
@ -375,7 +375,7 @@ It should be written as:
|
|||
"""
|
||||
return msg
|
||||
|
||||
elif len(probline) and len(probline) >= column and probline[column] == ":" and probline.count(':') > 1:
|
||||
elif len(probline) and len(probline) > 1 and len(probline) >= column and probline[column] == ":" and probline.count(':') > 1:
|
||||
msg = msg + """
|
||||
This one looks easy to fix. There seems to be an extra unquoted colon in the line
|
||||
and this is confusing the parser. It was only expecting to find one free
|
||||
|
|
Loading…
Add table
Reference in a new issue