From 37293dec3dc528979412821f7c32a0ff69508814 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Tue, 19 Jun 2018 21:56:02 +0530 Subject: [PATCH] Raise Exception in virtualbox inventory plugin Signed-off-by: Abhijeet Kasurde --- lib/ansible/plugins/inventory/virtualbox.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/inventory/virtualbox.py b/lib/ansible/plugins/inventory/virtualbox.py index 08bbf96337..07bc61e74a 100644 --- a/lib/ansible/plugins/inventory/virtualbox.py +++ b/lib/ansible/plugins/inventory/virtualbox.py @@ -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()