Ensure non ansilbe exceptions keep tracebacks (#37523)

This commit is contained in:
Brian Coca 2018-04-11 11:52:12 -04:00 committed by GitHub
parent ed42331105
commit d9430b79f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -275,7 +275,7 @@ class InventoryManager(object):
failures.append({'src': source, 'plugin': plugin_name, 'exc': e})
except Exception as e:
display.debug('%s failed to parse %s' % (plugin_name, to_text(source)))
failures.append({'src': source, 'plugin': plugin_name, 'exc': e})
failures.append({'src': source, 'plugin': plugin_name, 'exc': AnsibleError(e)})
else:
display.debug('%s did not meet %s requirements' % (to_text(source), plugin_name))
else: