1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Raise Exception in virtualbox inventory plugin

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2018-06-19 21:56:02 +05:30 committed by Brian Coca
parent 67d6e8177e
commit 37293dec3d

View file

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