commands/box: update gives nice message if no box
This commit is contained in:
parent
b4345968a5
commit
059243670f
|
@ -80,6 +80,12 @@ module VagrantPlugins
|
|||
|
||||
def update_vms(argv)
|
||||
with_target_vms(argv) do |machine|
|
||||
if !machine.config.vm.box
|
||||
machine.ui.output(I18n.t(
|
||||
"vagrant.errors.box_update_no_name"))
|
||||
next
|
||||
end
|
||||
|
||||
if !machine.box
|
||||
machine.ui.output(I18n.t(
|
||||
"vagrant.errors.box_update_no_box",
|
||||
|
|
|
@ -545,6 +545,8 @@ en:
|
|||
directly instead of from a box catalog. Vagrant can only
|
||||
check the versions of boxes that were added from a catalog
|
||||
such as from the public Vagrant Server.
|
||||
box_update_no_name: |-
|
||||
This machine doesn't have a box. Won't update anything.
|
||||
bundler_disabled: |-
|
||||
Vagrant's built-in bundler management mechanism is disabled because
|
||||
Vagrant is running in an external bundler environment. In these
|
||||
|
|
Loading…
Reference in New Issue