mirror of
https://github.com/thegeeklab/ansible-later.git
synced 2024-11-21 20:30:42 +00:00
revert candidate filetype handling
This commit is contained in:
parent
7121b2ce6f
commit
6fd39b62a4
@ -54,7 +54,7 @@ class Candidate:
|
||||
self.rules = SingleRules(self.config["rules"]["dir"]).rules
|
||||
|
||||
for rule in self._filter_rules():
|
||||
if self.filetype not in rule.types:
|
||||
if type(self).__name__.lower() not in rule.types:
|
||||
continue
|
||||
|
||||
result = rule.check(self, self.config)
|
||||
@ -145,7 +145,7 @@ class Candidate:
|
||||
return rule_id
|
||||
|
||||
def __repr__(self):
|
||||
return f"{self.filetype} ({self.path})"
|
||||
return f"{type(self).__name__.lower()} ({self.path})"
|
||||
|
||||
def __getitem__(self, item):
|
||||
return self.__dict__.get(item)
|
||||
|
Loading…
Reference in New Issue
Block a user