plugins/provisioners/shell/provisioner.rb in vagrant-unbundled-2.2.2.0 vs plugins/provisioners/shell/provisioner.rb in vagrant-unbundled-2.2.3.0
- old
+ new
@@ -29,10 +29,14 @@
provision_winssh(args)
else
provision_ssh(args)
end
ensure
- @machine.communicate.reset! if config.reset
+ if config.reboot
+ @machine.guest.capability(:reboot)
+ else
+ @machine.communicate.reset! if config.reset
+ end
end
protected
# This handles outputting the communication data back to the UI