Ensure non ansilbe exceptions keep tracebacks (#37523)

pull/38603/head
Brian Coca 7 years ago committed by GitHub
parent ed42331105
commit d9430b79f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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:

Loading…
Cancel
Save