mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 08:47:56 +00:00
virtcontainers: Fix the issue of watching console for firecracker
Since firecracker hasn't support console watching by now, so skip watching console if the consoleURL is empty. Fixes: #1970 Signed-off-by: lifupan <lifupan@gmail.com>
This commit is contained in:
parent
1935bf193c
commit
0926c8d9b4
@ -239,7 +239,9 @@ func (p *proxyBuiltin) start(params proxyParams) (int, string, error) {
|
||||
|
||||
p.sandboxID = params.id
|
||||
|
||||
if params.debug {
|
||||
// For firecracker, it hasn't support the console watching and it's consoleURL
|
||||
// will be set empty.
|
||||
if params.debug && params.consoleURL != "" {
|
||||
err := p.watchConsole(buildinProxyConsoleProto, params.consoleURL, params.logger)
|
||||
if err != nil {
|
||||
p.sandboxID = ""
|
||||
|
Loading…
Reference in New Issue
Block a user