Skip to content

Commit

Permalink
more precise pluing skip msg and more hidden
Browse files Browse the repository at this point in the history
  Plugins should also add more info on higher verbosity levels see ansible#48859
  • Loading branch information
bcoca committed Nov 23, 2018
1 parent 9115042 commit 0c90337
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/tweek_msg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- tweak inv plugin skip msg to be more precise, also require higher verbosity to view
2 changes: 1 addition & 1 deletion lib/ansible/inventory/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def parse_source(self, source, cache=False):
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.
Expand Down

0 comments on commit 0c90337

Please sign in to comment.