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 <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2019-03-22 21:06:32 +05:30 committed by Brian Coca
parent d241fc7844
commit 9aa1360867

View file

@ -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