Merge pull request #8099 from chrisroberts/windows/shared-folder-path

Fix virtualbox shared folders path
This commit is contained in:
Brian Cain 2018-04-10 09:16:06 -07:00 committed by GitHub
commit f1de9821e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ module VagrantPlugins
module Cap
class MountSharedFolder
def self.mount_virtualbox_shared_folder(machine, name, guestpath, options)
mount_shared_folder(machine, name, guestpath, "\\\\vboxsrv\\")
mount_shared_folder(machine, name, guestpath, "\\\\vboxsvr\\")
end
def self.mount_vmware_shared_folder(machine, name, guestpath, options)

View File

@ -29,7 +29,7 @@ describe "VagrantPlugins::GuestWindows::Cap::MountSharedFolder" do
/.+scripts\/mount_volume.ps1/, options: {
mount_point: "guestpath",
share_name: "name",
vm_provider_unc_path: "\\\\vboxsrv\\name",
vm_provider_unc_path: "\\\\vboxsvr\\name",
})
described_class.mount_virtualbox_shared_folder(machine, 'name', 'guestpath', {})
end
@ -39,7 +39,7 @@ describe "VagrantPlugins::GuestWindows::Cap::MountSharedFolder" do
kind_of(String), options: {
mount_point: kind_of(String),
share_name: "invalid-windows_sharename",
vm_provider_unc_path: "\\\\vboxsrv\\invalid-windows_sharename",
vm_provider_unc_path: "\\\\vboxsvr\\invalid-windows_sharename",
})
described_class.mount_virtualbox_shared_folder(machine, "/invalid-windows/sharename", "guestpath", {})
end