Merge pull request #10513 from briancain/catch-invalid-version-errors-vagrant_cloud

Fixes #10509:  Catch InvalidVersion errors from vagrant_cloud client
This commit is contained in:
Brian Cain 2019-01-09 11:16:58 -08:00 committed by GitHub
commit 5d4c9ef8a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -127,6 +127,10 @@ module VagrantPlugins
@env.ui.error(e)
return 1
end
rescue VagrantCloud::InvalidVersion => e
@env.ui.error(I18n.t("cloud_command.errors.publish.fail", org: org, box_name: box_name))
@env.ui.error(e)
return 1
end
begin

View File

@ -34,7 +34,7 @@ Gem::Specification.new do |s|
s.add_dependency "winrm", "~> 2.1"
s.add_dependency "winrm-fs", "~> 1.0"
s.add_dependency "winrm-elevated", "~> 1.1"
s.add_dependency "vagrant_cloud", "~> 2.0.0"
s.add_dependency "vagrant_cloud", "~> 2.0.2"
# NOTE: The ruby_dep gem is an implicit dependency from the listen gem. Later versions
# of the ruby_dep gem impose an aggressive constraint on the required ruby version (>= 2.2.5).