Update mount_shared_folder.rb
This change allows special characters in the password such as ) which will cause cmdkey to fail without the quotes.
This commit is contained in:
parent
89a21f0f47
commit
b7d702ab5f
|
@ -22,7 +22,7 @@ module VagrantPlugins
|
|||
# Ensure password is scrubbed
|
||||
Vagrant::Util::CredentialScrubber.sensitive(options[:smb_password])
|
||||
end
|
||||
machine.communicate.execute("cmdkey /add:#{options[:smb_host]} /user:#{options[:smb_username]} /pass:#{options[:smb_password]}", {shell: :powershell, elevated: true})
|
||||
machine.communicate.execute("cmdkey /add:#{options[:smb_host]} /user:#{options[:smb_username]} /pass:\"#{options[:smb_password]}\"", {shell: :powershell, elevated: true})
|
||||
mount_shared_folder(machine, name, guestpath, "\\\\#{options[:smb_host]}\\")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue