synced_folder: Fix UI warn when group / owner are specified on Vagrantfile

This commit is contained in:
Fabio Rehm 2014-03-21 19:31:14 -03:00
parent 164afc7839
commit 41716e9100

View file

@ -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.