diff --git a/lib/vagrant/action/builtin/mixin_synced_folders.rb b/lib/vagrant/action/builtin/mixin_synced_folders.rb index 7ffa64d03..5bdc287a8 100644 --- a/lib/vagrant/action/builtin/mixin_synced_folders.rb +++ b/lib/vagrant/action/builtin/mixin_synced_folders.rb @@ -65,7 +65,7 @@ module Vagrant next if data[:disabled] impl = "" - impl = data[:type].to_sym if data[:type] + impl = data[:type].to_sym if data[:type] && !data[:type].empty? if impl != "" impl_class = plugins[impl] diff --git a/test/unit/vagrant/action/builtin/mixin_synced_folders_test.rb b/test/unit/vagrant/action/builtin/mixin_synced_folders_test.rb index 6d96990f7..d24063109 100644 --- a/test/unit/vagrant/action/builtin/mixin_synced_folders_test.rb +++ b/test/unit/vagrant/action/builtin/mixin_synced_folders_test.rb @@ -74,11 +74,15 @@ describe Vagrant::Action::Builtin::MixinSyncedFolders do it "should return the proper set of folders" do folders["root"] = {} + folders["another"] = { type: "" } folders["nfs"] = { type: "nfs" } result = subject.synced_folders(machine) result.length.should == 2 - result[:default].should == { "root" => folders["root"] } + result[:default].should == { + "another" => folders["another"], + "root" => folders["root"], + } result[:nfs].should == { "nfs" => folders["nfs"] } end