synced_folder: Fix UI warn when group / owner are specified on Vagrantfile
This commit is contained in:
parent
164afc7839
commit
41716e9100
1 changed files with 2 additions and 2 deletions
|
@ -13,8 +13,8 @@ module Vagrant
|
||||||
host_path = Pathname.new(File.expand_path(data[:hostpath], machine.env.root_path))
|
host_path = Pathname.new(File.expand_path(data[:hostpath], machine.env.root_path))
|
||||||
guest_path = data[:guestpath]
|
guest_path = data[:guestpath]
|
||||||
|
|
||||||
env[:ui].warn(I18n.t("vagrant_lxc.messages.warn_owner")) if data[:owner]
|
machine.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_group")) if data[:group]
|
||||||
|
|
||||||
if !host_path.directory? && data[:create]
|
if !host_path.directory? && data[:create]
|
||||||
# Host path doesn't exist, so let's create it.
|
# Host path doesn't exist, so let's create it.
|
||||||
|
|
Loading…
Reference in a new issue