summaryrefslogtreecommitdiffhomepage
path: root/runsc/cmd
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2020-12-30 11:16:12 -0800
committergVisor bot <gvisor-bot@google.com>2020-12-30 11:18:36 -0800
commit1b66bad7c47e914994e19f39119d91ab6805002a (patch)
tree978d2af47748097bff7b2dd821d5241ee8258f1b /runsc/cmd
parented5850e8eb98c33d90f7233c0fb196d74e347439 (diff)
Fix condition checking in `runsc debug`
Closes #5052 PiperOrigin-RevId: 349579814
Diffstat (limited to 'runsc/cmd')
-rw-r--r--runsc/cmd/debug.go2
1 files changed, 1 insertions, 1 deletions
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)