diff --git a/src/ansiblelint/rules/MetaChangeFromDefaultRule.py b/src/ansiblelint/rules/MetaChangeFromDefaultRule.py index 96df6aa980..ac1b18dc80 100644 --- a/src/ansiblelint/rules/MetaChangeFromDefaultRule.py +++ b/src/ansiblelint/rules/MetaChangeFromDefaultRule.py @@ -44,7 +44,11 @@ def matchplay( value = galaxy_info.get(field, None) if value and value == default: results.append( - self.create_matcherror('Should change default metadata: %s' % field) + self.create_matcherror( + filename=file, + linenumber=data['__line__'], + message='Should change default metadata: %s' % field, + ) ) return results