From 41716e9100f3037980730103ce46ae861e928250 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Fri, 21 Mar 2014 19:31:14 -0300 Subject: [PATCH] synced_folder: Fix UI warn when group / owner are specified on Vagrantfile --- lib/vagrant-lxc/synced_folder.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/vagrant-lxc/synced_folder.rb b/lib/vagrant-lxc/synced_folder.rb index ab543ee..855b40b 100644 --- a/lib/vagrant-lxc/synced_folder.rb +++ b/lib/vagrant-lxc/synced_folder.rb @@ -13,8 +13,8 @@ module Vagrant host_path = Pathname.new(File.expand_path(data[:hostpath], machine.env.root_path)) guest_path = data[:guestpath] - env[:ui].warn(I18n.t("vagrant_lxc.messages.warn_owner")) if data[:owner] - env[:ui].warn(I18n.t("vagrant_lxc.messages.warn_group")) if data[:group] + machine.env.ui.warn(I18n.t("vagrant_lxc.messages.warn_owner")) if data[:owner] + machine.env.ui.warn(I18n.t("vagrant_lxc.messages.warn_group")) if data[:group] if !host_path.directory? && data[:create] # Host path doesn't exist, so let's create it.