Merge pull request #742 from electrofelix/fix-up-with-provision

Always call provisioners logic for booted machines
This commit is contained in:
Dmitry Vasilets 2017-03-20 13:25:27 +01:00 committed by GitHub
commit 29cb626506

View File

@ -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