summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2018-10-23 09:05:20 -0700
committerGitHub <noreply@github.com>2018-10-23 09:05:20 -0700
commit41a4827f841bf97c4c22ce651058741dc15e9451 (patch)
tree7b2cc7ef01115c8f45227c38e1b24a1d266260a5 /libpod
parent02a76a82b6860739ecd656b20817bbd2bd2c47ee (diff)
parentee8f19e7be8626b17498a3c5602a7390a4d671e3 (diff)
downloadpodman-41a4827f841bf97c4c22ce651058741dc15e9451.tar.gz
podman-41a4827f841bf97c4c22ce651058741dc15e9451.tar.bz2
podman-41a4827f841bf97c4c22ce651058741dc15e9451.zip
Merge pull request #1638 from baude/fastps
Make podman ps fast
Diffstat (limited to 'libpod')
-rw-r--r--libpod/container_api.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/libpod/container_api.go b/libpod/container_api.go
index 93becb80d..41a131ea2 100644
--- a/libpod/container_api.go
+++ b/libpod/container_api.go
@@ -666,14 +666,10 @@ func (c *Container) Batch(batchFunc func(*Container) error) error {
newCtr.valid = true
newCtr.batched = true
-
- if err := batchFunc(newCtr); err != nil {
- return err
- }
-
+ err := batchFunc(newCtr)
newCtr.batched = false
- return c.save()
+ return err
}
// Sync updates the current state of the container, checking whether its state