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:
commit
5d4c9ef8a7
|
@ -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
|
||||
|
|
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue