Config validation error if :id in pre-import VBoxManage

This commit is contained in:
Mitchell Hashimoto 2013-07-23 12:59:37 -07:00
parent 5f34a694f5
commit 92a61f96a0
2 changed files with 8 additions and 0 deletions

View File

@ -93,6 +93,12 @@ module VagrantPlugins
end
end
@customizations.each do |event, command|
if event == "pre-import" && command.index(:id)
errors << I18n.t("vagrant.virtualbox.config.id_in_pre_import")
end
end
{ "VitualBox Provider" => errors }
end

View File

@ -42,6 +42,8 @@ en:
virtualbox:
config:
id_in_pre_import: |-
The ':id' parameter is not available in "pre-import" customizations.
invalid_event: |-
%{event} is not a valid event for customization. Valid events
are: %{valid_events}