From 1b66bad7c47e914994e19f39119d91ab6805002a Mon Sep 17 00:00:00 2001 From: Fabricio Voznika Date: Wed, 30 Dec 2020 11:16:12 -0800 Subject: Fix condition checking in `runsc debug` Closes #5052 PiperOrigin-RevId: 349579814 --- runsc/cmd/debug.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runsc/cmd') diff --git a/runsc/cmd/debug.go b/runsc/cmd/debug.go index 195a32ac1..843dce01d 100644 --- a/runsc/cmd/debug.go +++ b/runsc/cmd/debug.go @@ -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) -- cgit v1.2.3