diff --git a/plugins/kernel_v2/config/vm_trigger.rb b/plugins/kernel_v2/config/vm_trigger.rb index 8117a0ed7..2a44ae03c 100644 --- a/plugins/kernel_v2/config/vm_trigger.rb +++ b/plugins/kernel_v2/config/vm_trigger.rb @@ -149,6 +149,11 @@ module VagrantPlugins if @run errorz = @run.validate(machine) errors.concat errorz["shell provisioner"] if !errorz.empty? + + if @run.privileged == true + machine.ui.warn(I18n.t("vagrant.config.triggers.privileged_ignored", + command: @command)) + end end if @run_remote diff --git a/templates/locales/en.yml b/templates/locales/en.yml index 31bb2e3be..e20091fce 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -1717,6 +1717,8 @@ en: only be `:halt` (default) or `:continue`. only_on_bad_type: |- Invalid type found for `only_on`. All values must be a `String` or `Regexp`. + privileged_ignored: |- + The `privileged` setting for option `run` for trigger command '%{command}' will be ignored and set to false. run: bad_type: |- Invalid type set for `run` on trigger for command '%{cmd}'. `run`