lib/vagrant/util/platform.rb in vagrant-unbundled-1.8.4.2 vs lib/vagrant/util/platform.rb in vagrant-unbundled-1.8.5.1
- old
+ new
@@ -80,10 +80,10 @@
return @_windows_hyperv_admin if defined?(@_windows_hyperv_admin)
@_windows_hyperv_admin = -> {
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
}.call
return @_windows_hyperv_admin