Merge pull request #9968 from verheyenkoen/version-check-display-installed-version

Display current version in version check
This commit is contained in:
Brian Cain 2018-06-29 09:25:59 -07:00 committed by GitHub
commit 0872609b59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ module Vagrant
ui = Vagrant::UI::Prefixed.new(env.ui, "vagrant")
if latest_version > installed_version
@logger.info("new version of Vagrant available - #{latest_version}")
ui.info(I18n.t("vagrant.version_upgrade_available", latest_version: latest_version))
ui.info(I18n.t("vagrant.version_upgrade_available", latest_version: latest_version, installed_version: installed_version))
env.ui.info("")
else
@logger.debug("vagrant is currently up to date")

View File

@ -311,7 +311,7 @@ en:
Vagrant was unable to check for the latest version of Vagrant.
Please check manually at https://www.vagrantup.com
version_upgrade_available: |-
A new version of Vagrant is available: %{latest_version}!
A new version of Vagrant is available: %{latest_version} (installed version: %{installed_version})!
To upgrade visit: https://www.vagrantup.com/downloads.html
version_upgrade_howto: |-