From 9c8bbe29047eae7435216ad491655967adbce3f6 Mon Sep 17 00:00:00 2001 From: Richard C Isaacson Date: Wed, 26 Feb 2014 16:28:34 -0600 Subject: [PATCH] column must always be less than len(probline) Fixes related to GH-5773. --- lib/ansible/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils/__init__.py b/lib/ansible/utils/__init__.py index cb056fdcfd..02148faff0 100644 --- a/lib/ansible/utils/__init__.py +++ b/lib/ansible/utils/__init__.py @@ -375,7 +375,7 @@ It should be written as: """ return msg - elif len(probline) and len(probline) > 1 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