This commit is contained in:
sophia 2022-07-05 13:41:13 -05:00
parent e8c0587c85
commit b17c36c7c7
2 changed files with 4 additions and 6 deletions

View File

@ -7,7 +7,7 @@ module Vagrant
module Action module Action
module Builtin module Builtin
module MixinSyncedFolders module MixinSyncedFolders
autoload :Remote, "vagrant/action/builtin/remote/mixin_synced_folderse" autoload :Remote, "vagrant/action/builtin/remote/mixin_synced_folders"
include Vagrant::Util::ScopedHashOverride include Vagrant::Util::ScopedHashOverride

View File

@ -118,11 +118,9 @@ module VagrantPlugins
end end
def _cleaned_folder_hash(folder) def _cleaned_folder_hash(folder)
folder_hash = folder.to_h folder_hash = folder.options.to_ruby.transform_keys(&:to_sym)
folder_hash.delete_if do |k, v| folder_hash[:source] = folder.source
hazzer = :"has_#{k}?" folder_hash[:destination] = folder.destination
folder.respond_to?(hazzer) && !folder.send(hazzer)
end
folder_hash folder_hash
end end
end end