Add comments for later dev

This commit is contained in:
Brian Cain 2018-03-13 16:24:46 -07:00
parent 60ff2489c4
commit a96baad0d7
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
2 changed files with 2 additions and 1 deletions

View File

@ -90,6 +90,7 @@ module VagrantPlugins
end end
# Validate Trigger settings # Validate Trigger settings
# TODO: Validate not called if there are providers defined in vagrantfile
def validate(machine) def validate(machine)
errors = _detected_errors errors = _detected_errors
@_before_triggers.each do |bt| @_before_triggers.each do |bt|

View File

@ -114,12 +114,12 @@ module VagrantPlugins
errors = _detected_errors errors = _detected_errors
commands = [] commands = []
# TODO: Should this be cached...?
Vagrant.plugin("2").manager.commands.each do |key,data| Vagrant.plugin("2").manager.commands.each do |key,data|
commands.push(key) commands.push(key)
end end
if !commands.include?(@command) if !commands.include?(@command)
# does this make sense to print on this machine?
machine.ui.warn(I18n.t("vagrant.config.triggers.bad_command_warning", machine.ui.warn(I18n.t("vagrant.config.triggers.bad_command_warning",
cmd: @command)) cmd: @command))
end end