mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Merge pull request #742 from electrofelix/fix-up-with-provision
Always call provisioners logic for booted machines
This commit is contained in:
commit
29cb626506
@ -67,8 +67,11 @@ module VagrantPlugins
|
||||
Vagrant::Action::Builder.new.tap do |b|
|
||||
b.use ConfigValidate
|
||||
b.use Call, IsRunning do |env, b2|
|
||||
# If the VM is running, then our work here is done, exit
|
||||
next if env[:result]
|
||||
# If the VM is running, run the necessary provisioners
|
||||
if env[:result]
|
||||
b2.use action_provision
|
||||
next
|
||||
end
|
||||
|
||||
b2.use Call, IsSuspended do |env2, b3|
|
||||
# if vm is suspended resume it then exit
|
||||
|
Loading…
Reference in New Issue
Block a user