commands/box/update: proper provider is updated [GH-4374]
This commit is contained in:
parent
be6665864d
commit
e5a7bfebbc
|
@ -35,7 +35,7 @@ module VagrantPlugins
|
||||||
if options[:box]
|
if options[:box]
|
||||||
update_specific(options[:box], options[:provider])
|
update_specific(options[:box], options[:provider])
|
||||||
else
|
else
|
||||||
update_vms(argv)
|
update_vms(argv, options[:provider])
|
||||||
end
|
end
|
||||||
|
|
||||||
0
|
0
|
||||||
|
@ -78,8 +78,8 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_vms(argv)
|
def update_vms(argv, provider)
|
||||||
with_target_vms(argv) do |machine|
|
with_target_vms(argv, provider: provider) do |machine|
|
||||||
if !machine.config.vm.box
|
if !machine.config.vm.box
|
||||||
machine.ui.output(I18n.t(
|
machine.ui.output(I18n.t(
|
||||||
"vagrant.errors.box_update_no_name"))
|
"vagrant.errors.box_update_no_name"))
|
||||||
|
|
Loading…
Reference in New Issue