From 9aa136086748d828ba10d5fb1e317ac751172b88 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Fri, 22 Mar 2019 21:06:32 +0530 Subject: [PATCH] virtualbox: fix regression byte-string (#54244) All paths in get_bin_path are string type and vboxmanage was byte-string type. So os.path.join was failing to join these two. 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 6bb16fa18e..68932d66b8 100644 --- a/lib/ansible/plugins/inventory/virtualbox.py +++ b/lib/ansible/plugins/inventory/virtualbox.py @@ -61,7 +61,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable): ''' Host inventory parser for ansible using local virtualbox. ''' NAME = 'virtualbox' - VBOX = b"VBoxManage" + VBOX = "VBoxManage" def __init__(self): self._vbox_path = None