This commit is contained in:
Roman Semenov 2017-08-18 18:58:45 +03:00 committed by GitHub
parent d014cdac65
commit fc1e4f7533
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ module Vagrant
valid = false valid = false
result = Util::Subprocess.execute("vagrant.exe", "version") result = Util::Subprocess.execute("vagrant.exe", "version")
if result.exit_code == 0 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 if windows_version
windows_version = windows_version[:version].strip windows_version = windows_version[:version].strip
valid = windows_version == Vagrant::VERSION valid = windows_version == Vagrant::VERSION