Check stdout instead of process output
Fixes GH-7465
This commit is contained in:
parent
e7b25f1bee
commit
d01ddeeb43
@ -82,7 +82,7 @@ module Vagrant
|
||||
begin
|
||||
username = ENV["USERNAME"]
|
||||
process = Subprocess.execute("net", "localgroup", "Hyper-V Administrators")
|
||||
return process.include?(username)
|
||||
return process.stdout.include?(username)
|
||||
rescue Errors::CommandUnavailableWindows
|
||||
return false
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user