'sets up loaded inventory plugins for usage'

def _setup_inventory_plugins(self):

    inventory_loader = PluginLoader('InventoryModule', 'ansible.plugins.inventory', 'inventory_plugins', 'inventory_plugins')
    display.vvvv('setting    up    inventory    plugins')
    for name in C.INVENTORY_ENABLED:
        plugin = inventory_loader.get(name)
        if plugin:
            self._inventory_plugins.append(plugin)
        else:
            display.warning(('Failed    to    load    inventory    plugin,    skipping    %s' % name))
    if (not self._inventory_plugins):
        raise AnsibleError('No    inventory    plugins    available    to    generate    inventory,    make    sure    you    have    at    least    one    whitelisted.')
