From eecba611a4a243c472c9aade675b9d84dfcb6ce4 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 16 Jan 2014 09:43:31 -0800 Subject: [PATCH] providers/virtualbox: validate missing keys [GH-2831] --- CHANGELOG.md | 1 + plugins/providers/virtualbox/config.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ffe165ac1..08e5a9ca0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -66,6 +66,7 @@ BUG FIXES: works properly. [GH-2751] - providers/virtualbox: Make more internal interactions with VBoxManage retryable to avoid spurious VirtualBox errors. [GH-2831] + - providers/virtualbox: Config validation catches invalid keys. [GH-2843] - provisioners/chef: When chowning folders, don't follow symlinks. - provisioners/salt: Options can now set install type and install args. [GH-2766] diff --git a/plugins/providers/virtualbox/config.rb b/plugins/providers/virtualbox/config.rb index ba60e77e9..c14311d30 100644 --- a/plugins/providers/virtualbox/config.rb +++ b/plugins/providers/virtualbox/config.rb @@ -110,7 +110,7 @@ module VagrantPlugins end def validate(machine) - errors = [] + errors = _detected_errors valid_events = ["pre-import", "pre-boot", "post-boot"] @customizations.each do |event, _|