'iterate over inventory sources and parse each one to populate it'

def parse_sources(self, cache=True):

    self._setup_inventory_plugins()
    parsed = False
    for source in self._sources:
        if source:
            if (',' not in source):
                source = unfrackpath(source, follow=False)
            parse = self.parse_source(source, cache=cache)
            if (parse and (not parsed)):
                parsed = True
    if parsed:
        self._inventory.reconcile_inventory()
    else:
        display.warning('No    inventory    was    parsed,    only    implicit    localhost    is    available')
    self._inventory_plugins = []
