provisioners/chef: fix validate return so that it is properly formatted

This commit is contained in:
Mitchell Hashimoto 2013-12-03 13:59:59 -08:00
parent 61b622994e
commit 5ee3a06740
1 changed files with 2 additions and 1 deletions

View File

@ -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