From d01ddeeb4349f6bacdaa85924af42d2cfc26113d Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Thu, 16 Jun 2016 16:20:15 -0400 Subject: [PATCH] Check stdout instead of process output Fixes GH-7465 --- lib/vagrant/util/platform.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/util/platform.rb b/lib/vagrant/util/platform.rb index bb0205e90..38e177f07 100644 --- a/lib/vagrant/util/platform.rb +++ b/lib/vagrant/util/platform.rb @@ -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