Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
virtcontainers: Fix the issue of watching console for firecracker
Browse files Browse the repository at this point in the history
Since firecracker hasn't support console watching by now, so skip
watching console if the consoleURL is empty.

Fixes: #1970

Signed-off-by: lifupan <[email protected]>
  • Loading branch information
lifupan committed Aug 21, 2019
1 parent 1935bf1 commit 0926c8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion virtcontainers/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit 0926c8d

Please sign in to comment.