fix inventory loading for ansible-doc

fixes #31995
pull/28442/merge
Brian Coca 7 years ago committed by Brian Coca
parent 36b13e3e3d
commit 90e8071d48

@ -95,7 +95,7 @@ class DocCLI(CLI):
elif plugin_type == 'vars':
loader = vars_loader
elif plugin_type == 'inventory':
loader = PluginLoader('InventoryModule', 'ansible.plugins.inventory', 'inventory_plugins', 'inventory_plugins')
loader = PluginLoader('InventoryModule', 'ansible.plugins.inventory', C.DEFAULT_INVENTORY_PLUGIN_PATH, 'inventory_plugins')
else:
loader = module_loader

Loading…
Cancel
Save