mirror of
https://github.com/containers/podman.git
synced 2025-07-24 16:04:50 +08:00
Fix varlink API usage of psgo
Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user