From 93e5bc39693e1e5ee90d1e0f66a9b25aa2ba4ea1 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 10 Dec 2011 12:52:42 -0800 Subject: [PATCH] Tweak actions for new runner --- lib/vagrant/action/vm/host_name.rb | 6 +++--- lib/vagrant/action/vm/share_folders.rb | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/vagrant/action/vm/host_name.rb b/lib/vagrant/action/vm/host_name.rb index d2234e63b..3e9f10ce5 100644 --- a/lib/vagrant/action/vm/host_name.rb +++ b/lib/vagrant/action/vm/host_name.rb @@ -9,10 +9,10 @@ module Vagrant def call(env) @app.call(env) - host_name = env["config"].vm.host_name + host_name = env[:vm].config.vm.host_name if !host_name.nil? - env.ui.info I18n.t("vagrant.actions.vm.host_name.setting") - env["vm"].system.change_host_name(host_name) + env[:ui].info I18n.t("vagrant.actions.vm.host_name.setting") + env[:vm].system.change_host_name(host_name) end end end diff --git a/lib/vagrant/action/vm/share_folders.rb b/lib/vagrant/action/vm/share_folders.rb index a2db045b6..c853d6c65 100644 --- a/lib/vagrant/action/vm/share_folders.rb +++ b/lib/vagrant/action/vm/share_folders.rb @@ -70,8 +70,8 @@ module Vagrant :guest_path => data[:guestpath])) # Calculate the owner and group - owner = data[:owner] || @env["config"].ssh.username - group = data[:group] || @env["config"].ssh.username + owner = data[:owner] || @env[:vm].config.ssh.username + group = data[:group] || @env[:vm].config.ssh.username # Mount the actual folder @env[:vm].system.mount_shared_folder(ssh, name, data[:guestpath], owner, group)