diff --git a/plugins/provisioners/chef/config/chef_solo.rb b/plugins/provisioners/chef/config/chef_solo.rb index c6156a69b..3a9345841 100644 --- a/plugins/provisioners/chef/config/chef_solo.rb +++ b/plugins/provisioners/chef/config/chef_solo.rb @@ -29,6 +29,10 @@ module VagrantPlugins @cookbooks_path = [[:host, "cookbooks"], [:vm, "cookbooks"]] end + # Make sure the path is an array. + @cookbooks_path = [@cookbooks_path] if \ + !@cookbooks_path.is_a?(Array) || @cookbooks_path.first.is_a?(Symbol) + # Make sure all the paths are the proper format @cookbooks_path.map! do |path| path = [:host, path] if !path.is_a?(Array)