Hi everyone,
I’m currently tinkering around the source code of the InventoryManager of Ansible and am currently stuck on how it normally picks up the loader and sources?
I’m trying to inherit attributes from the InventoryManager (with super.init()), but I need a loader to do so and DataLoader() doesn’t seem to give me the right sources / doesn’t parse the inventory correctly (or maybe it’s something else, but I really don’t know what).
class InventoryManager(object):
‘’’ Creates and manages inventory ‘’’
def init(self, loader, sources=None, parse=True):
base objects
self._loader = loader
self._inventory = InventoryData()
Appreciate any help