commands/box/update: proper provider is updated [GH-4374]

This commit is contained in:
Mitchell Hashimoto 2014-08-29 12:05:44 -07:00
parent be6665864d
commit e5a7bfebbc
1 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ module VagrantPlugins
if options[:box]
update_specific(options[:box], options[:provider])
else
update_vms(argv)
update_vms(argv, options[:provider])
end
0
@ -78,8 +78,8 @@ module VagrantPlugins
end
end
def update_vms(argv)
with_target_vms(argv) do |machine|
def update_vms(argv, provider)
with_target_vms(argv, provider: provider) do |machine|
if !machine.config.vm.box
machine.ui.output(I18n.t(
"vagrant.errors.box_update_no_name"))