diff options
author | Brent Baude <bbaude@redhat.com> | 2019-04-05 19:49:36 -0500 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-04-05 20:09:45 -0500 |
commit | 23602de816b9ee3e92a8cbac295e955ba43fa283 (patch) | |
tree | 8ae6789a7e7e5e52de2270bb3854f01dc55b9949 /cmd/podman/pod_stats.go | |
parent | bc320be00bc584bd88525266d23a9d5edb9d44f8 (diff) | |
download | podman-23602de816b9ee3e92a8cbac295e955ba43fa283.tar.gz podman-23602de816b9ee3e92a8cbac295e955ba43fa283.tar.bz2 podman-23602de816b9ee3e92a8cbac295e955ba43fa283.zip |
Revert "Switch to golangci-lint"
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd/podman/pod_stats.go')
-rw-r--r-- | cmd/podman/pod_stats.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cmd/podman/pod_stats.go b/cmd/podman/pod_stats.go index 744602268..36b0b95ed 100644 --- a/cmd/podman/pod_stats.go +++ b/cmd/podman/pod_stats.go @@ -298,3 +298,17 @@ func outputJson(stats []*adapter.PodContainerStats) error { fmt.Println(string(b)) return nil } + +func getPodsByList(podList []string, r *libpod.Runtime) ([]*libpod.Pod, error) { + var ( + pods []*libpod.Pod + ) + for _, p := range podList { + pod, err := r.LookupPod(p) + if err != nil { + return nil, err + } + pods = append(pods, pod) + } + return pods, nil +} |