Ensure non ansilbe exceptions keep tracebacks (#37523)

(cherry picked from commit d9430b79f9)
This commit is contained in:
Brian Coca 2018-04-11 11:52:12 -04:00 committed by Matt Davis
parent 20430f901e
commit 2f64d6fcfb

View file

@ -270,7 +270,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: