summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <bcoca@users.noreply.github.com>2018-04-11 11:52:12 -0400
committerMatt Davis <mrd@redhat.com>2018-04-18 10:13:29 -0700
commit2f64d6fcfb016ecfe0c640c01f930a58929fb20c (patch)
treeb893b1112608b286de44aa2e06c83dc8b98ff03a
parent20430f901e3ec34e3d33754292eb653310a26805 (diff)
downloadansible-2f64d6fcfb016ecfe0c640c01f930a58929fb20c.tar.gz
Ensure non ansilbe exceptions keep tracebacks (#37523)
(cherry picked from commit d9430b79f99362731282d675640057808abd79c9)
-rw-r--r--lib/ansible/inventory/manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/inventory/manager.py b/lib/ansible/inventory/manager.py
index 133809e5b8..719a333e9b 100644
--- a/lib/ansible/inventory/manager.py
+++ b/lib/ansible/inventory/manager.py
@@ -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: