Raise Exception in virtualbox inventory plugin
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
67d6e8177e
commit
37293dec3d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue