From 86c50839bd113f728277c11b92884828388cd35d Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Thu, 8 Oct 2015 13:50:21 -0500 Subject: [PATCH] We are using enumerate to get line numbers, so we need to add 1 since it is 0 offset --- ansible_testing/modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible_testing/modules.py b/ansible_testing/modules.py index 56c906158e3..b621f06d432 100644 --- a/ansible_testing/modules.py +++ b/ansible_testing/modules.py @@ -175,7 +175,7 @@ class ModuleValidator(Validator): if '\t' in i: index = line.index(i) self.errors.append('indentation contains tabs. line %d ' - 'column %d' % (line_no, index)) + 'column %d' % (line_no + 1, index)) def _find_json_import(self): for child in self.ast.body: