Merge pull request #8902 from poma/patch-1

Fix #8901
This commit is contained in:
Chris Roberts 2017-08-21 14:54:52 -07:00 committed by GitHub
commit dfefa0883c
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ module Vagrant
valid = false
result = Util::Subprocess.execute("vagrant.exe", "version")
if result.exit_code == 0
windows_version = result.stdout.match(/Installed Version: (?<version>.+$)/)
windows_version = result.stdout.match(/Installed Version: (?<version>[\w.-]+)/)
if windows_version
windows_version = windows_version[:version].strip
valid = windows_version == Vagrant::VERSION