Initial commit of pylint fixes

This commit is contained in:
beeankha
2020-08-24 16:47:16 -04:00
parent 5248ac4498
commit ef7a74c4a3
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(InventoryModule, self).verify_file(path):
elif super().verify_file(path):
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(InventoryModule, self).parse(inventory, loader, path)
super().parse(inventory, loader, path)
if not self.no_config_file_supplied and os.path.isfile(path):
self._read_config_data(path)