diff --git a/ansible_testing/modules.py b/ansible_testing/modules.py index 4bb86858ee0..34d409d63a7 100644 --- a/ansible_testing/modules.py +++ b/ansible_testing/modules.py @@ -177,7 +177,7 @@ class ModuleValidator(Validator): indent = INDENT_REGEX.search(line) for i in indent.groups(): if '\t' in i: - index = line.index(i) + index = line.index('\t') self.errors.append('indentation contains tabs. line %d ' 'column %d' % (line_no + 1, index))