summaryrefslogtreecommitdiffhomepage
path: root/runsc/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'runsc/cmd')
-rw-r--r--runsc/cmd/debug.go2
-rw-r--r--runsc/cmd/list.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/runsc/cmd/debug.go b/runsc/cmd/debug.go
index caa44168b..cb7d81057 100644
--- a/runsc/cmd/debug.go
+++ b/runsc/cmd/debug.go
@@ -85,7 +85,7 @@ func (d *Debug) Execute(_ context.Context, f *flag.FlagSet, args ...interface{})
if err != nil {
Fatalf("error loading container %q: %v", id, err)
}
- if candidate.Pid() == d.pid {
+ if candidate.SandboxPid() == d.pid {
c = candidate
break
}
diff --git a/runsc/cmd/list.go b/runsc/cmd/list.go
index d554bf7cf..4d4a5cb0b 100644
--- a/runsc/cmd/list.go
+++ b/runsc/cmd/list.go
@@ -94,7 +94,7 @@ func (l *List) Execute(_ context.Context, f *flag.FlagSet, args ...interface{})
for _, c := range containers {
fmt.Fprintf(w, "%s\t%d\t%s\t%s\t%s\t%s\n",
c.ID,
- c.Pid(),
+ c.SandboxPid(),
c.Status,
c.BundleDir,
c.CreatedAt.Format(time.RFC3339Nano),