1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #49080 from bcoca/better_invp_skip

more precise pluing skip msg and now in higher verbosity level
This commit is contained in:
Brian Coca 2018-11-27 18:30:14 -05:00 committed by Toshio Kuratomi
parent 07895538b5
commit ae2467ddbc
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- tweak inv plugin skip msg to be more precise, also require higher verbosity to view

View file

@ -275,7 +275,7 @@ class InventoryManager(object):
display.debug('%s failed to parse %s' % (plugin_name, source))
failures.append({'src': source, 'plugin': plugin_name, 'exc': AnsibleError(e)})
else:
display.v('%s did not meet %s requirements, check plugin documentation if this is unexpected' % (source, plugin_name))
display.vvv("%s declined parsing %s as it did not pass it's verify_file() method" % (plugin_name, source))
else:
if not parsed and failures:
# only if no plugin processed files should we show errors.