guests/linux: don't show SMB password in plaintext on error [GH-3203]
This commit is contained in:
parent
e748aadf4f
commit
a6725710d3
|
@ -18,6 +18,8 @@ BUG FIXES:
|
||||||
- guests/fedora: Fix hostname setting. [GH-3382]
|
- guests/fedora: Fix hostname setting. [GH-3382]
|
||||||
- guests/fedora: Support predictable network interface names for
|
- guests/fedora: Support predictable network interface names for
|
||||||
public/private networks. [GH-3207]
|
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]
|
- providers/hyperv: Check for PowerShell features. [GH-3398]
|
||||||
- synced\_folders/smb: Only set the chmod properly by default on Windows
|
- synced\_folders/smb: Only set the chmod properly by default on Windows
|
||||||
if it isn't already set. [GH-3394]
|
if it isn't already set. [GH-3394]
|
||||||
|
|
|
@ -61,8 +61,11 @@ module VagrantPlugins
|
||||||
|
|
||||||
attempts += 1
|
attempts += 1
|
||||||
if attempts > 10
|
if attempts > 10
|
||||||
|
command = mount_commands.join("\n")
|
||||||
|
command.gsub!(options[:smb_password], "PASSWORDHIDDEN")
|
||||||
|
|
||||||
raise Vagrant::Errors::LinuxMountFailed,
|
raise Vagrant::Errors::LinuxMountFailed,
|
||||||
command: mount_commands.join("\n")
|
command: command
|
||||||
end
|
end
|
||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
|
|
Loading…
Reference in New Issue