Ensure non ansilbe exceptions keep tracebacks (#37523)
(cherry picked from commit d9430b79f9
)
This commit is contained in:
parent
20430f901e
commit
2f64d6fcfb
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue