Raise Exception in virtualbox inventory plugin

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>

(cherry picked from commit 37293dec3d)
pull/41880/head
Abhijeet Kasurde 7 years ago committed by Matt Clay
parent 96896654bd
commit 5e10424f31

@ -0,0 +1,3 @@
---
minor_changes:
- Raise AnsibleParserError which was missing previously

@ -250,7 +250,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
try: try:
p = Popen(cmd, stdout=PIPE) p = Popen(cmd, stdout=PIPE)
except Exception as e: except Exception as e:
AnsibleParserError(to_native(e)) raise AnsibleParserError(to_native(e))
source_data = p.stdout.read().splitlines() source_data = p.stdout.read().splitlines()

Loading…
Cancel
Save