lib/vagrant-vbguest/helpers.rb in vagrant-vbguest-0.6.0.pre1 vs lib/vagrant-vbguest/helpers.rb in vagrant-vbguest-0.6.0.pre2

- old
+ new

@@ -6,13 +6,15 @@ def rebooted?(vm) !!@@rebooted[vm.name] end def reboot(vm, options) - if options[:auto_reboot] + if rebooted?(vm) + vm.ui.error(I18n.t("vagrant.plugins.vbguest.restart_loop_guard_activated")) + false + elsif options[:auto_reboot] vm.ui.warn(I18n.t("vagrant.plugins.vbguest.restart_vm")) @@rebooted[vm.name] = true - true else @vm.ui.warn(I18n.t("vagrant.plugins.vbguest.suggest_restart", :name => vm.name)) false end end \ No newline at end of file