From 5ee3a06740bf3b250f6c3018fbf1656cd8024a61 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 3 Dec 2013 13:59:59 -0800 Subject: [PATCH] provisioners/chef: fix validate return so that it is properly formatted --- plugins/provisioners/chef/config/chef_solo.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/provisioners/chef/config/chef_solo.rb b/plugins/provisioners/chef/config/chef_solo.rb index 6af81932a..07ae43f24 100644 --- a/plugins/provisioners/chef/config/chef_solo.rb +++ b/plugins/provisioners/chef/config/chef_solo.rb @@ -69,7 +69,6 @@ module VagrantPlugins !cookbooks_path || [cookbooks_path].flatten.empty? errors << I18n.t("vagrant.config.chef.environment_path_required") if \ environment && environments_path.empty? - { "chef solo provisioner" => errors } environments_path.each do |type, raw_path| next if type != :host @@ -80,6 +79,8 @@ module VagrantPlugins path: raw_path.to_s) end end + + { "chef solo provisioner" => errors } end protected