Add check for WSL when determining if Hyper-V is usable

This commit is contained in:
Chris Roberts 2018-06-18 09:08:35 -07:00
parent d84f29f12c
commit 1e5c8bf275
1 changed files with 3 additions and 2 deletions

View File

@ -12,11 +12,12 @@ module VagrantPlugins
attr_reader :driver
def self.usable?(raise_error=false)
if !Vagrant::Util::Platform.windows?
if !Vagrant::Util::Platform.windows? &&
!Vagrant::Util::Platform.wsl?
raise Errors::WindowsRequired
end
if !Vagrant::Util::Platform.windows_admin? and
if !Vagrant::Util::Platform.windows_admin? &&
!Vagrant::Util::Platform.windows_hyperv_admin?
raise Errors::AdminRequired
end