`vagrant provision` checks for inaccessible VMs
This commit is contained in:
parent
327a6f9d94
commit
82d6d5357b
|
@ -6,7 +6,9 @@ module Vagrant
|
||||||
def execute
|
def execute
|
||||||
target_vms.each do |vm|
|
target_vms.each do |vm|
|
||||||
if vm.created?
|
if vm.created?
|
||||||
if vm.vm.running?
|
if !vm.vm.accessible?
|
||||||
|
raise Errors::VMInaccessible
|
||||||
|
elsif vm.vm.running?
|
||||||
vm.provision
|
vm.provision
|
||||||
else
|
else
|
||||||
vm.env.ui.info I18n.t("vagrant.commands.common.vm_not_running")
|
vm.env.ui.info I18n.t("vagrant.commands.common.vm_not_running")
|
||||||
|
|
Loading…
Reference in New Issue