mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-14 20:11:48 -05:00
Add noqa directive for super calls
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user