Don't output stdout and stderr twice when shell provisioner fails

[GH-4086]
This commit is contained in:
Matthijs van der Vleuten 2014-06-23 11:22:12 +02:00
parent 1e28f1ac31
commit 1091b4cb54
2 changed files with 8 additions and 1 deletions

View File

@ -65,7 +65,11 @@ module VagrantPlugins
end
# Execute it with sudo
comm.execute(command, sudo: config.privileged) do |type, data|
comm.execute(
command,
sudo: config.privileged,
error_key: :ssh_bad_exit_status_muted
) do |type, data|
handle_comm(type, data)
end
end

View File

@ -968,6 +968,9 @@ en:
Stderr from the command:
%{stderr}
ssh_bad_exit_status_muted: |-
The SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
ssh_connect_eacces: |-
SSH is getting permission denied errors when attempting to connect
to the IP for SSH. This is usually caused by network rules and not being