More auto info (#76598)

* make auto invenory plugin a bit more informative

* clog
pull/76671/head
Brian Coca 3 years ago committed by GitHub
parent 66e392d4e2
commit 4d380dcbaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,2 @@
minor_changes:
- auto inventory plugin will now give plugin loading information on verbose output

@ -53,8 +53,9 @@ class InventoryModule(BaseInventoryPlugin):
raise AnsibleParserError("inventory config '{0}' specifies unknown plugin '{1}'".format(path, plugin_name))
if not plugin.verify_file(path):
raise AnsibleParserError("inventory config '{0}' could not be verified by plugin '{1}'".format(path, plugin_name))
raise AnsibleParserError("inventory source '{0}' could not be verified by inventory plugin '{1}'".format(path, plugin_name))
self.display.v("Using inventory plugin '{0}' to process inventory source '{1}'".format(plugin._load_name, path))
plugin.parse(inventory, loader, path, cache=cache)
try:
plugin.update_cache_if_changed()

Loading…
Cancel
Save