Fix condition checking in runsc debug

Closes #5052

PiperOrigin-RevId: 349579814
This commit is contained in:
Fabricio Voznika
2020-12-30 11:18:36 -08:00
committed by gVisor bot
parent ed5850e8eb
commit 1b66bad7c4
+1 -1
View File
@@ -124,7 +124,7 @@ func (d *Debug) Execute(_ context.Context, f *flag.FlagSet, args ...interface{})
}
}
if c.IsSandboxRunning() {
if !c.IsSandboxRunning() {
return Errorf("container sandbox is not running")
}
log.Infof("Found sandbox %q, PID: %d", c.Sandbox.ID, c.Sandbox.Pid)