summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-10-10 12:22:35 -0500
committerbaude <bbaude@redhat.com>2018-10-23 08:26:21 -0500
commitee8f19e7be8626b17498a3c5602a7390a4d671e3 (patch)
treed9846560bf0723305600e9cf43749536c9befd14 /libpod
parent5b2478ed87eedd8178c1672a786f95a6716a8edb (diff)
downloadpodman-ee8f19e7be8626b17498a3c5602a7390a4d671e3.tar.gz
podman-ee8f19e7be8626b17498a3c5602a7390a4d671e3.tar.bz2
podman-ee8f19e7be8626b17498a3c5602a7390a4d671e3.zip
Make podman ps fast
Like Ricky Bobby, we want to go fast. Signed-off-by: baude <bbaude@redhat.com>
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