summaryrefslogtreecommitdiff
path: root/pkg/varlinkapi/pods.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-05-05 17:29:56 +0200
committerGitHub <noreply@github.com>2020-05-05 17:29:56 +0200
commit9db97dbab8b777b3c9b868cdab62cb7b46839f95 (patch)
treecf9556b1c2991fa30b7c23398ec44a636bfbad82 /pkg/varlinkapi/pods.go
parente6235ef8f1a3111f8f1afbb1bf64f0e6da704a5b (diff)
parentb5a235df900a6471895111b4de5f80732f7f563a (diff)
downloadpodman-9db97dbab8b777b3c9b868cdab62cb7b46839f95.tar.gz
podman-9db97dbab8b777b3c9b868cdab62cb7b46839f95.tar.bz2
podman-9db97dbab8b777b3c9b868cdab62cb7b46839f95.zip
Merge pull request #6080 from baude/v2stats
v2 podman stats
Diffstat (limited to 'pkg/varlinkapi/pods.go')
-rw-r--r--pkg/varlinkapi/pods.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/varlinkapi/pods.go b/pkg/varlinkapi/pods.go
index 5a9360447..aeb3cdcb8 100644
--- a/pkg/varlinkapi/pods.go
+++ b/pkg/varlinkapi/pods.go
@@ -8,12 +8,12 @@ import (
"strconv"
"syscall"
+ "github.com/containers/libpod/libpod"
+ "github.com/containers/libpod/libpod/define"
+ iopodman "github.com/containers/libpod/pkg/varlink"
"github.com/cri-o/ocicni/pkg/ocicni"
"github.com/docker/go-connections/nat"
"github.com/pkg/errors"
-
- "github.com/containers/libpod/libpod"
- iopodman "github.com/containers/libpod/pkg/varlink"
)
// CreatePod ...
@@ -263,7 +263,7 @@ func (i *VarlinkAPI) GetPodStats(call iopodman.VarlinkCall, name string) error {
if err != nil {
return call.ReplyPodNotFound(name, err.Error())
}
- prevStats := make(map[string]*libpod.ContainerStats)
+ prevStats := make(map[string]*define.ContainerStats)
podStats, err := pod.GetPodStats(prevStats)
if err != nil {
return call.ReplyErrorOccurred(err.Error())