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

View File

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