diff --git a/lib/vagrant/command/destroy.rb b/lib/vagrant/command/destroy.rb index d719ed06d..0a9e6dc59 100644 --- a/lib/vagrant/command/destroy.rb +++ b/lib/vagrant/command/destroy.rb @@ -19,7 +19,7 @@ module Vagrant vm.destroy else @logger.info("Not destroying #{vm.name}, since it isn't created.") - vm.env.ui.info I18n.t("vagrant.commands.common.vm_not_created") + vm.ui.info I18n.t("vagrant.commands.common.vm_not_created") end end end diff --git a/lib/vagrant/guest/freebsd.rb b/lib/vagrant/guest/freebsd.rb index 3e57e2d9f..8f9c2d0ee 100644 --- a/lib/vagrant/guest/freebsd.rb +++ b/lib/vagrant/guest/freebsd.rb @@ -24,7 +24,7 @@ module Vagrant end def halt - vm.env.ui.info I18n.t("vagrant.guest.freebsd.attempting_halt") + vm.ui.info I18n.t("vagrant.guest.freebsd.attempting_halt") vm.ssh.execute do |ssh| ssh.exec!("sudo shutdown -p now") end diff --git a/lib/vagrant/guest/linux.rb b/lib/vagrant/guest/linux.rb index 644daf2a7..8f81795bd 100644 --- a/lib/vagrant/guest/linux.rb +++ b/lib/vagrant/guest/linux.rb @@ -22,7 +22,7 @@ module Vagrant end def halt - vm.env.ui.info I18n.t("vagrant.guest.linux.attempting_halt") + vm.ui.info I18n.t("vagrant.guest.linux.attempting_halt") vm.ssh.execute do |ssh| ssh.exec!("sudo shutdown -h now") end diff --git a/lib/vagrant/guest/solaris.rb b/lib/vagrant/guest/solaris.rb index f5ebce730..596907b48 100644 --- a/lib/vagrant/guest/solaris.rb +++ b/lib/vagrant/guest/solaris.rb @@ -61,7 +61,7 @@ module Vagrant # # does not exist in /etc/user_attr. TODO def halt - vm.env.ui.info I18n.t("vagrant.guest.solaris.attempting_halt") + vm.ui.info I18n.t("vagrant.guest.solaris.attempting_halt") vm.ssh.execute do |ssh| # Wait until the VM's state is actually powered off. If this doesn't # occur within a reasonable amount of time (15 seconds by default),