def __virtual__():
    '''
    Only load the module if VBoxManage is installed
    '''
    if vboxcmd():
        if __opts__.get('autoload_vboxdrv', False) is True:
            if not __salt__['kmod.is_loaded']('vboxdrv'):
                __salt__['kmod.load']('vboxdrv')
        return True
    return (False, 'The vboxmanaged execution module failed to load: VBoxManage is not installed.')
def __virtual__ ( ) : if vboxcmd ( ) : if __opts__ . get ( 'autoload_vboxdrv' , False ) is True : if not __salt__ [ 'kmod.is_loaded' ] ( 'vboxdrv' ) : __salt__ [ 'kmod.load' ] ( 'vboxdrv' ) return True return ( False , 'The vboxmanaged execution module failed to load: VBoxManage is not installed.' )
Only load the module if VBoxManage is installed