Skip to content

Commit

Permalink
Merge pull request #294 from legal90/run-provision-on-up
Browse files Browse the repository at this point in the history
Make `start` action run provisioners if VM is running
  • Loading branch information
legal90 authored Mar 28, 2017
2 parents cb9cc53 + f26b609 commit 648f40f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/vagrant-parallels/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,10 @@ def self.action_start
Vagrant::Action::Builder.new.tap do |b|
b.use BoxCheckOutdated
b.use Call, IsState, :running do |env1, b1|
# If the VM is running, then our work here is done, exit
# If the VM is running, run the necessary provisioners
if env1[:result]
b1.use Message, I18n.t('vagrant_parallels.commands.common.vm_already_running')
action_provision
next
end

Expand Down

0 comments on commit 648f40f

Please sign in to comment.