guests/linux: don't show SMB password in plaintext on error [GH-3203]

This commit is contained in:
Mitchell Hashimoto 2014-04-09 10:42:39 -07:00
parent e748aadf4f
commit a6725710d3
2 changed files with 6 additions and 1 deletions

View File

@ -18,6 +18,8 @@ BUG FIXES:
- guests/fedora: Fix hostname setting. [GH-3382]
- guests/fedora: Support predictable network interface names for
public/private networks. [GH-3207]
- guests/linux: If SMB folder mounting fails, the password will no
longer be shown in plaintext in the output. [GH-3203]
- providers/hyperv: Check for PowerShell features. [GH-3398]
- synced\_folders/smb: Only set the chmod properly by default on Windows
if it isn't already set. [GH-3394]

View File

@ -61,8 +61,11 @@ module VagrantPlugins
attempts += 1
if attempts > 10
command = mount_commands.join("\n")
command.gsub!(options[:smb_password], "PASSWORDHIDDEN")
raise Vagrant::Errors::LinuxMountFailed,
command: mount_commands.join("\n")
command: command
end
sleep 2