Add noqa directive for super calls

This commit is contained in:
beeankha
2020-08-25 15:49:20 -04:00
parent ef7a74c4a3
commit 4bc1a128ec
6 changed files with 11 additions and 11 deletions

View File

@@ -89,7 +89,7 @@ class InventoryModule(BaseInventoryPlugin):
if path.endswith('@tower_inventory'):
self.no_config_file_supplied = True
return True
elif super().verify_file(path):
elif super(InventoryModule, self).verify_file(path): # noqa
return path.endswith(('tower_inventory.yml', 'tower_inventory.yaml', 'tower.yml', 'tower.yaml'))
else:
return False
@@ -98,7 +98,7 @@ class InventoryModule(BaseInventoryPlugin):
self.display.warning(warning)
def parse(self, inventory, loader, path, cache=True):
super().parse(inventory, loader, path)
super(InventoryModule, self).parse(inventory, loader, path) # noqa
if not self.no_config_file_supplied and os.path.isfile(path):
self._read_config_data(path)