communicators/ssh: handle closed connection without exception
This commit is contained in:
parent
e8bdc817f0
commit
50fdf1358c
|
@ -12,6 +12,7 @@ IMPROVEMENTS:
|
||||||
|
|
||||||
- core: add `--color` to any Vagrant command to FORCE color output. [GH-2027]
|
- core: add `--color` to any Vagrant command to FORCE color output. [GH-2027]
|
||||||
- core: "config.vm.host_name" works again, just an alias to hostname.
|
- core: "config.vm.host_name" works again, just an alias to hostname.
|
||||||
|
- core: Reboots via SSH are now handled gracefully (without exception).
|
||||||
- commands/plugin/install: Post install message of a plugin will be
|
- commands/plugin/install: Post install message of a plugin will be
|
||||||
shown if available. [GH-1986]
|
shown if available. [GH-1986]
|
||||||
- commands/status: cosmetic improvement to better align names and
|
- commands/status: cosmetic improvement to better align names and
|
||||||
|
|
|
@ -359,7 +359,12 @@ module VagrantPlugins
|
||||||
end
|
end
|
||||||
|
|
||||||
# Wait for the channel to complete
|
# Wait for the channel to complete
|
||||||
|
begin
|
||||||
channel.wait
|
channel.wait
|
||||||
|
rescue IOError
|
||||||
|
@logger.info("SSH connection unexpected closed. Assuming reboot or something.")
|
||||||
|
exit_status = 0
|
||||||
|
end
|
||||||
ensure
|
ensure
|
||||||
# Kill the keep-alive thread
|
# Kill the keep-alive thread
|
||||||
keep_alive.kill if keep_alive
|
keep_alive.kill if keep_alive
|
||||||
|
|
Loading…
Reference in New Issue