From b17c36c7c7f7173a7e5903896cff103e8207aa78 Mon Sep 17 00:00:00 2001 From: sophia Date: Tue, 5 Jul 2022 13:41:13 -0500 Subject: [PATCH] Fix typo --- lib/vagrant/action/builtin/mixin_synced_folders.rb | 2 +- plugins/commands/serve/client/target/machine.rb | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/vagrant/action/builtin/mixin_synced_folders.rb b/lib/vagrant/action/builtin/mixin_synced_folders.rb index 490b73188..bc5e17f38 100644 --- a/lib/vagrant/action/builtin/mixin_synced_folders.rb +++ b/lib/vagrant/action/builtin/mixin_synced_folders.rb @@ -7,7 +7,7 @@ module Vagrant module Action module Builtin module MixinSyncedFolders - autoload :Remote, "vagrant/action/builtin/remote/mixin_synced_folderse" + autoload :Remote, "vagrant/action/builtin/remote/mixin_synced_folders" include Vagrant::Util::ScopedHashOverride diff --git a/plugins/commands/serve/client/target/machine.rb b/plugins/commands/serve/client/target/machine.rb index a64f7ec0f..e44c643a1 100644 --- a/plugins/commands/serve/client/target/machine.rb +++ b/plugins/commands/serve/client/target/machine.rb @@ -118,11 +118,9 @@ module VagrantPlugins end def _cleaned_folder_hash(folder) - folder_hash = folder.to_h - folder_hash.delete_if do |k, v| - hazzer = :"has_#{k}?" - folder.respond_to?(hazzer) && !folder.send(hazzer) - end + folder_hash = folder.options.to_ruby.transform_keys(&:to_sym) + folder_hash[:source] = folder.source + folder_hash[:destination] = folder.destination folder_hash end end