diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-04-10 04:24:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-10 04:24:56 -0700 |
commit | 2f2c7660c3a30d4c28c03eeeba8edc39f7864c7a (patch) | |
tree | 4bfe5f7073420ecb7be8869ee6ee1efc759b36fe /pkg/adapter/containers.go | |
parent | 60ef8f8da90ec5200e62b79b24324fefde2c7036 (diff) | |
parent | 23cd1928ec36a80f491b329dda3789b2dac32bcc (diff) | |
download | podman-2f2c7660c3a30d4c28c03eeeba8edc39f7864c7a.tar.gz podman-2f2c7660c3a30d4c28c03eeeba8edc39f7864c7a.tar.bz2 podman-2f2c7660c3a30d4c28c03eeeba8edc39f7864c7a.zip |
Merge pull request #2882 from baude/remoteps
podman-remote ps
Diffstat (limited to 'pkg/adapter/containers.go')
-rw-r--r-- | pkg/adapter/containers.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/pkg/adapter/containers.go b/pkg/adapter/containers.go index 19ff2270c..8ce506542 100644 --- a/pkg/adapter/containers.go +++ b/pkg/adapter/containers.go @@ -397,3 +397,13 @@ func ReadExitFile(runtimeTmp, ctrID string) (int, error) { return exitCode, nil } + +// Ps ... +func (r *LocalRuntime) Ps(c *cliconfig.PsValues, opts shared.PsOptions) ([]shared.PsContainerOutput, error) { + maxWorkers := shared.Parallelize("ps") + if c.GlobalIsSet("max-workers") { + maxWorkers = c.GlobalFlags.MaxWorks + } + logrus.Debugf("Setting maximum workers to %d", maxWorkers) + return shared.GetPsContainerOutput(r.Runtime, opts, c.Filter, maxWorkers) +} |