mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix condition checking in runsc debug
Closes #5052 PiperOrigin-RevId: 349579814
This commit is contained in:
committed by
gVisor bot
parent
ed5850e8eb
commit
1b66bad7c4
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user