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]
|
- Fix SSH `exec!` to inherit proper `$PATH`. [GH-426]
|
||||||
- Chef client now accepts an empty (`nil`) run list again. [GH-429]
|
- 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)
|
## 0.8.2 (July 22, 2011)
|
||||||
|
|
||||||
|
|
|
@ -5,8 +5,12 @@ module Vagrant
|
||||||
|
|
||||||
def execute
|
def execute
|
||||||
target_vms.each do |vm|
|
target_vms.each do |vm|
|
||||||
if vm.created? && vm.vm.running?
|
if vm.created?
|
||||||
|
if vm.vm.running?
|
||||||
vm.provision
|
vm.provision
|
||||||
|
else
|
||||||
|
vm.env.ui.info I18n.t("vagrant.commands.common.vm_not_running")
|
||||||
|
end
|
||||||
else
|
else
|
||||||
vm.env.ui.info I18n.t("vagrant.commands.common.vm_not_created")
|
vm.env.ui.info I18n.t("vagrant.commands.common.vm_not_created")
|
||||||
end
|
end
|
||||||
|
|
|
@ -182,6 +182,7 @@ en:
|
||||||
commands:
|
commands:
|
||||||
common:
|
common:
|
||||||
vm_not_created: "VM not created. Moving on..."
|
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:
|
box:
|
||||||
no_installed_boxes: "There are no installed boxes! Use `vagrant box add` to add some."
|
no_installed_boxes: "There are no installed boxes! Use `vagrant box add` to add some."
|
||||||
ssh:
|
ssh:
|
||||||
|
|
Loading…
Reference in New Issue