Fix message when provision is run on halted machine [closes GH-447]
This commit is contained in:
parent
ed8bf34153
commit
2ca46ced57
|
@ -2,6 +2,7 @@
|
|||
|
||||
- Fix SSH `exec!` to inherit proper `$PATH`. [GH-426]
|
||||
- Chef client now accepts an empty (`nil`) run list again. [GH-429]
|
||||
- Fix incorrect error message when running `provision` on halted VM. [GH-447]
|
||||
|
||||
## 0.8.2 (July 22, 2011)
|
||||
|
||||
|
|
|
@ -5,8 +5,12 @@ module Vagrant
|
|||
|
||||
def execute
|
||||
target_vms.each do |vm|
|
||||
if vm.created? && vm.vm.running?
|
||||
vm.provision
|
||||
if vm.created?
|
||||
if vm.vm.running?
|
||||
vm.provision
|
||||
else
|
||||
vm.env.ui.info I18n.t("vagrant.commands.common.vm_not_running")
|
||||
end
|
||||
else
|
||||
vm.env.ui.info I18n.t("vagrant.commands.common.vm_not_created")
|
||||
end
|
||||
|
|
|
@ -182,6 +182,7 @@ en:
|
|||
commands:
|
||||
common:
|
||||
vm_not_created: "VM not created. Moving on..."
|
||||
vm_not_running: "VM is not currently running. Please bring it up to run this command."
|
||||
box:
|
||||
no_installed_boxes: "There are no installed boxes! Use `vagrant box add` to add some."
|
||||
ssh:
|
||||
|
|
Loading…
Reference in New Issue