Check stdout instead of process output

Fixes GH-7465
This commit is contained in:
Seth Vargo 2016-06-16 16:20:15 -04:00
parent e7b25f1bee
commit d01ddeeb43
No known key found for this signature in database
GPG Key ID: 905A90C2949E8787
1 changed files with 1 additions and 1 deletions

View File

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