mirror of
https://github.com/containers/podman
synced 2024-10-21 01:34:37 +00:00
Merge pull request #1153 from jwhonce/bug/psgo
Fix varlink API usage of psgo
This commit is contained in:
commit
561007d1f8
|
@ -110,7 +110,7 @@ func (i *LibpodAPI) ListContainerProcesses(call ioprojectatomicpodman.VarlinkCal
|
|||
return call.ReplyErrorOccurred(fmt.Sprintf("container %s is not running", name))
|
||||
}
|
||||
var psArgs []string
|
||||
psOpts := []string{"-o", "uid,pid,ppid,c,stime,tname,time,cmd"}
|
||||
psOpts := []string{"user", "pid", "ppid", "pcpu", "etime", "tty", "time", "comm"}
|
||||
if len(opts) > 1 {
|
||||
psOpts = opts
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue