diff --git a/lib/ansible/cli/doc.py b/lib/ansible/cli/doc.py index 1a98a19c75..d8e4dec4f0 100644 --- a/lib/ansible/cli/doc.py +++ b/lib/ansible/cli/doc.py @@ -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